JavaScript Obtenha a data da meia -noite hoje
d = new Date();
d.setHours(0,0,0,0);.
TheLonelyWolf
d = new Date();
d.setHours(0,0,0,0);.
// start day
new Date().setHours(0,0,0,0);
// finish day
new Date().setHours(23,59,59,0);