Date.setDate

Sets the day of the month for a specified date according to local time.

Method of Date

Syntax

setDate(dayValue )

Parameters

Parameter Description
dayValue An integer from 1 to 31, representing the day of the month.

Examples

The second statement below changes the day for theBigDay to July 24 from its original value.

See also

Date.getDate, Date.setUTCDate

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.