Is there any JavaScript library that takes Java's SimpleDateFormat
pattern and parses a date/time string into a Date
object?
For example, given "2010-12-20"
and "yyyy-MM-dd"
, the function would parse "2010-12-20"
and return a JavaScript Date
.
I noticed that jQuery UI's Date Picker can format and parse a date string, but it doesn't work with a time string.
Thanks.