How can I convert a string to a date time object in javascript by specifying a format string?
I am looking for something like:
var dateTime = convert
To fully satisfy the Date.parse convert string to format dd-mm-YYYY as specified in RFC822, if you use yyyy-mm-dd parse may do a mistakes.