I want to parse date in my page to Javascript\'s Date.
So I have this in my page
01-07-2012 01:04 PM
As explained in the documentation the string you are passing to the constructor of the Date object should be:
String value representing a date. The string should be in a format recognized by the parse method (IETF-compliant RFC 1123 timestamps).
Basically it should represent an RFC822 or ISO 8601 date.