<html>
<body>
<input type="text" id="Tb_Set_Time" size="10" width="200" value="2014-11-12"/>
<input type="text" id="Tb_End_Time" size="10" width="200" value="2014-12-22"/>
<input type="button" id="d523_ss" size="3" onclick='pickedFunc()' /> 秒
<script src ="jquery.min.js"></script>
<script>
function pickedFunc() {
var date1 = Date.parse($('#Tb_Set_Time').val());
var date2 = Date.parse($('#Tb_End_Time').val());
var diffDays = (date2 - date1) / 3600 / 1000 / 24;
alert(diffDays);
}
</script>
</body>
</html>