<html>
<head>
<meta http-equiv="" content="" />
<title></title>
</head>
<body >
<script type="text/javascript">
function getDiff(s1,s2) {
var days = s2.getTime() - s1.getTime();
var time = parseInt(days / (1000 * 60 * 60 * 24));
return time;
}
var hi1=new Date('2016/04/11');
var hi2=new Date();
var hi=getDiff(hi1,hi2);
alert(hi);
</script>
</body>
</html>