The setHours() function of date object sets hours in date object. Use it for example to sets the hours in date.
Syntax
This will produce following result