Sets the day of the month for a specified date object using local time.
dateObjectName.setDate(dayValue)
dateObjectName is the name of a Date object.
dayValue is an integer from one to thirty-one, representing the day of the month.
For example, the second statement below changes the day for theNewDay to the 24th of July from its original value.
theNewDay = new Date("July 27, 1962 23:30:00")
theNewDay.setDate(24)
0 Comment(s)