Created
January 11, 2011 23:21
-
-
Save bnvk/775371 to your computer and use it in GitHub Desktop.
Some simple, yet useful JS date/time functions
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
// 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