Forum Discussion

AvaniAnand's avatar
AvaniAnand
New Contributor
6 months ago

How to parse a string in an object to Date

How can I parse a string in an object to Date? eg. Date.parse($vendorBill.tranDate, "dd-MM-YYYY") gives me NaN How would I parse this correctly to return the date in the $vendorBill.string object p...