JavaScript Get Datum Beginn von heute

var startOfDay = new Date();
startOfDay.setHours(0,0,0,0);
var endOfDay = new Date();
endOfDay.setHours(23,59,59,999);
haraldlons