Last active
November 20, 2015 15:56
-
-
Save bsitruk/7bfaafbbb9cdd47a855f to your computer and use it in GitHub Desktop.
Date manipulation
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
| var tenDaysAgo = new Date( now.getFullYear(), now.getMonth(), now.getDate() - 10); // Negative date works !! | |
| var negativeDate = new Date(2015, 10, -1); // 30 Octobre 2015 | |
| var elappsedTime = Date.now() - tenDaysAgo; // Soustraire deux dates utilisent automatiquement les timeStamps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment