Sets hours portion of time.

Syntax

<oRef>.setHours(<expN>)

<oRef>

The Date object whose hours you want to change.

<expN>

The hour number, normally between 0 and 23.

Property of

Date

Description

The setHours( ) method sets the hours portion of "time" for the Date object.