SyntaxFix
Write A Post
Hire A Developer
Questions
var date1 = new Date("7/11/2010"); var date2 = new Date("8/11/2010"); var diffDays = parseInt((date2 - date1) / (1000 * 60 * 60 * 24), 10); alert(diffDays )