Last active
March 4, 2020 17:54
-
-
Save peteee/f46a28ca1beae1ca0b260fbd07121bd1 to your computer and use it in GitHub Desktop.
dateFlag
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
/** | |
* Create unique url request flags to force reload... | |
*/ | |
var d = new Date(); | |
var dateFlag = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate() + "-" + d.getHours() + "-" + d.getMinutes() + "-" + d.getSeconds(); | |
console.log(dateFlag); // logs: 2020-3-4-12-45-31 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment