Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Date();
- new Date(value); // integer
- new Date(dateString); // string
- new Date(year, month[, day[, hour[, minutes[, seconds[, milliseconds]]]]]);
- date = new Date() // Wed Sep 02 2015 16:30:21 GMT-0700 (PDT)
- date2 = new Date(date) // Wed Sep 02 2015 16:30:21 GMT-0700 (PDT)
- date2 === date // false
- date.setMonth(1) // 1422923421090
- date // Mon Feb 02 2015 16:30:21 GMT-0800 (PST)
- date2 // Wed Sep 02 2015 16:30:21 GMT-0700 (PDT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement