Forum Discussion
endor_force
5 years agoNew Contributor III
Check the characters used here, probably explains the error you have, copying from formatted web pages like this forum will give you wrong chars.
In the forum here, use the preformatted text when pasting code strings, and there will be no issues when copy/pasting. =)
You can also use formatting in Date.parse if needed to clarify the format of the input to parse.
Date.parse($original['Due Date'], "dd/MM/yyyy").toLocaleDateString({"format":"yyyy-MM-dd"})