How to use parseDate() [duplicate]

variable currently outputs as 2013-02-05T16:30:01Z

How do I use parseDate(), to change how the date is formatted?

8

1 Answer

You can use the object Date in order to define the Date.

var d = new Date('2013-02-05T16:30:01Z'); 

the variable d is now a Date object you can process all date methods. And I think that parseDate() is a jQuery UI method ($.datepicker.parseDate)

You Might Also Like