Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
115
rated 0 times [  118] [ 3]  / answers: 1 / hits: 34527  / 12 Years ago, tue, july 17, 2012, 12:00:00
Date.parse();


My jsFiddle works fine, but run it in my ide (both Aptana and WebStorm) shows NaN in the console.log() output.



Really confused about this... Has someone had such experience before?


More From » jquery

 Answers
2

Working demo http://jsfiddle.net/7KfuM/



Change - to /



Good read: Jquery Date.parse returning NaN in Chrome browser? or https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date



Try this:



var firstDayTimestamp = Date.parse(2009/07/13 00:00:00 + -0500) / 1000;


Hope this fits the cause! B-)


[#84223] Sunday, July 15, 2012, 12 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
;