SyntaxFix
Write A Post
Hire A Developer
Questions
var start= $("#firstDate").datepicker("getDate"); var end= $("#SecondDate").datepicker("getDate"); var days = (end- start) / (1000 * 60 * 60 * 24); alert(Math.round(days));
jsfiddle example :)