Created
January 19, 2017 13:59
-
-
Save krohne/c7849a60dedacf5f5ef18dd0867122c7 to your computer and use it in GitHub Desktop.
Yesterday's date in one line
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
return ( (new Date( new Date( (new Date()).toISOString().slice(0,10) ) - 1 ) ).toISOString().slice(0,10) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment