-
-
Save victoriastuart/b9fb09b890ef88755538b24b0207fece to your computer and use it in GitHub Desktop.
javascript Date()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// On my computer [Arch Linux; node.js]: | |
console.log('Date():', Date()); | |
// Date(): Wed Mar 08 2017 15:19:16 GMT-0800 (PST) | |
console.log('new Date():', new Date()); | |
// new Date(): 2017-03-08T23:19:16.189Z | |
console.log('new Date().toString():', new Date().toString()); | |
// new Date().toString(): Wed Mar 08 2017 15:19:16 GMT-0800 (PST) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment