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
I think this can help you: http://www.mattkruse.com/javascript/date/
There's a getDateFromFormat() function that you can tweak a little to solve your problem.
getDateFromFormat()
Update: there's an updated version of the samples available at javascripttoolbox.com