JavaScript Obtenha o início da data de hoje
var startOfDay = new Date();
startOfDay.setHours(0,0,0,0);
var endOfDay = new Date();
endOfDay.setHours(23,59,59,999);
haraldlons