Skip to content

Instantly share code, notes, and snippets.

@victoriastuart
Created March 8, 2017 23:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victoriastuart/b9fb09b890ef88755538b24b0207fece to your computer and use it in GitHub Desktop.
Save victoriastuart/b9fb09b890ef88755538b24b0207fece to your computer and use it in GitHub Desktop.
javascript Date()
// 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