js date start of time code example
Example 1: get start of day javascript
var start = new Date();
start.setHours(0,0,0,0);
var end = new Date();
end.setHours(23,59,59,999);
alert( start.toUTCString() + ':' + end.toUTCString() );
Example 2: new date parameters javascript
// new Date parameters in javascript
new Date(year, month, date, hours, minutes, seconds, ms)