Date.prototype.setHours

Sets the hour value in the Date object using local time.

Syntax

setHours(hours, minutes?, seconds?, milliseconds?)

Parameters