Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
192
rated 0 times [  195] [ 3]  / answers: 1 / hits: 18247  / 11 Years ago, wed, march 13, 2013, 12:00:00

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



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


More From » jquery

 Answers
143

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)


[#79614] Tuesday, March 12, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gregoriocoya

Total Points: 549
Total Questions: 111
Total Answers: 104

Location: Saint Helena
Member since Mon, Jan 16, 2023
1 Year ago
;