Created
April 19, 2018 14:55
-
-
Save Alex-Just/85626efaf1d989f749260dc8e71694bd to your computer and use it in GitHub Desktop.
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 date = new Date(); | |
undefined | |
date | |
Thu Apr 19 2018 17:52:34 GMT+0300 (MSK) | |
date.setHours(0); | |
1524088354412 | |
date.setMinutes(0); | |
1524085234412 | |
date.setSeconds(0); | |
1524085200412 | |
date | |
Thu Apr 19 2018 00:00:00 GMT+0300 (MSK) | |
var date = new Date(); | |
undefined | |
date.setUTCHours(0); | |
1524099196119 | |
date.setUTCMinutes(0); | |
1524096016119 | |
date.setUTCSeconds(0); | |
1524096000119 | |
date | |
Thu Apr 19 2018 03:00:00 GMT+0300 (MSK) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment