Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
95
rated 0 times [  100] [ 5]  / answers: 1 / hits: 156353  / 14 Years ago, fri, october 29, 2010, 12:00:00

In PHP, you can easily convert an English textual datetime description into a proper date with strtotime().



Is there anything similar in Javascript?


More From » date

 Answers
17

I found this article and tried the tutorial. Basically, you can use the date constructor to parse a date, then write get the seconds from the getTime() method



var d=new Date(October 13, 1975 11:13:00);
document.write(d.getTime() + milliseconds since 1970/01/01);


Does this work?


[#95147] Tuesday, October 26, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jimmiejudahm

Total Points: 319
Total Questions: 98
Total Answers: 117

Location: Venezuela
Member since Sat, Apr 24, 2021
3 Years ago
;