Web development Techniques
Tuesday, 26 June 2012
Parse Date in JS
var x = new Date(Date.parse("Jun 28 2012"));
It will return :-
Wed Jun 27 2012 00:00:00
GMT+0530
And
var x = new Date(Date.parse("Jun 28 2012 14:00:00"));
It will return :-
Wed Jun 28 2012 14:00:00 GMT+0530
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment