Alex Rivera | Logout

How to convert string to Date object?

Asked 2011-10-16T14:48:55.443
15

How to convert date string to Date object ?

2011-09-19T19:49:21+04:00
Edit
Report

1 Answer

12

Use jquery ui date parser.

http://docs.jquery.com/UI/Datepicker/parseDate

This is the best function for parsing dates out of strings that I've had the pleasure to work with in js. And as you added the tag jquery it's probably the best solution for you.

answered 2011-10-16T14:49:46.863

Your Answer