Created
October 10, 2011 16:45
-
-
Save jorgeguberte/1275767 to your computer and use it in GitHub Desktop.
Cálculo de diferença de dias javascript
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
//Substituir por valores reais. | |
var data1 = new Date('YYYY', 'MM','DD'); | |
var data2 = new Date('YYYY', 'MM','DD'); | |
var diferenca = parseInt((data1-data2)/(24*3600*1000)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment