Javascript Date.setHours() method sets the hours for a specified date according to local time. It set the hours, minutes, seconds, and milliseconds fields of a Date As far as an an optional integer is ...