Get tomorrow's 0 o'clock

//Get tomorrow's 0 o'clock

function getTomorrowZeroTime(){

var now = new Date();

var now1 = now.getHours()*60*60+now.getMinutes()*60+now.getSeconds(); // current time timestamp

var now2 = now.getTime()+86400000-now1*1000; // timestamp at 0:00 tomorrow

var tomorrowZeroTime = new Date(now2); // tomorrow at 0:00

return tomorrowZeroTime;

 

}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326271851&siteId=291194637