how to set a date with specific hour format javascript code example
Example: javascript get midnight tonight
var d = new Date();
d.setHours(24,0,0,0); // next midnight
var d = new Date();
d.setHours(24,0,0,0); // next midnight