Javascript SetHours() Function

The setHours() function of date object sets hours in date object. Use it for example to sets the hours in date.

Syntax

Javascript SetHours() Function Example

This will produce following result