javascript get midnight tonight
snippet in javascript

javascript get midnight tonight

user7900

var d = new Date();
d.setHours(24,0,0,0); // next midnight