Click here to Skip to main content
15,892,674 members

Comments by Gabriel 2 (Top 1 by date)

Gabriel 2 19-Oct-18 9:27am View    
Deleted
"Date" object asumes month number to start in 0, not 1.
The line: new Date(parts[2], parts[1], parts[0]) should be:
new Date(parts[2], parts[1] - 1, parts[0])