Skip to content

Instantly share code, notes, and snippets.

@bnvk
Created January 11, 2011 23:21
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 bnvk/775371 to your computer and use it in GitHub Desktop.
Save bnvk/775371 to your computer and use it in GitHub Desktop.
Some simple, yet useful JS date/time functions
// Gets Current Browser Date/Time
var now = new Date();
// Gets Current Browser Timezone
var zone = now.toString().substr(25,6) + ":" + now.toString().substr(31,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment