Possible Duplicate:
Help parsing ISO 8601 date in Javascript
I have a set of strings, all in similar form: 2012-05-31T00:00:00.0000000
All I want to pull from this is the year (2012), the month (05), and the day (31), then construct a javascript Date object from this data.
What is the best way to parse this data?