I am trying to convert \"July 24 2013\" to \"DD-MM-YYYY\" with javascript but I keep getting and error.
I am using new Date(\'July 24 2013\').format(\"DD-MM-YY
new Date(\'July 24 2013\').format(\"DD-MM-YY
There is no Data.prototype.format function in JavaScript.
You're best off looking at open source options for localizing dates. I've had success with
There's also: