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...
If format is "01-Jan-2025" then this will be Date.parse($vendorBill.tranDate, "dd-MMM-yyyy") If format is "2025-01-31" then this will be Date.parse($vendorBill.tranDate, "yyyy-MM-dd")