Sets day of month.

Syntax

<oRef>.setDate(<expN>)

<oRef>

The Date object whose day you want to change.

<expN>

The day of month number, normally between 1 and 31.

Property of

Date

Description

The setDate( ) method sets the day of month for the Date object.