Created
May 16, 2016 09:57
-
-
Save heroqu/38d1a6ab2646c23098ffdd7a0a57349a to your computer and use it in GitHub Desktop.
Get today date without time part (beginning of the current day)
This file contains hidden or 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
| function today() { | |
| return new Date((new Date()).setHours(0, 0, 0, 0)); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment