Created
March 6, 2014 16:35
-
-
Save Dexterstat/9393712 to your computer and use it in GitHub Desktop.
Current date on javascript
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
var currentDate = new Date() | |
var day = currentDate.getDate() | |
var month = currentDate.getMonth() + 1 | |
var year = currentDate.getFullYear() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment