function getDay() {
var curTime = new Date();
var endTime = new Date(2016,1,5);
var time = (endTime.getTime() - curTime.getTime());
console.log(time);
time = Math.ceil(time / (24*60*60*1000));
alert(time);
}