javascript set time to start of day 12 am code example Example: javascript set time to start of day 12 am var d = new Date(); d.setHours(0,0,0,0);