Table of Contents

Date.setDate( ) Method Flash 5

assign the day of the month
date.setDate(day)

Arguments

day

An integer from 1 to 31, representing the new day of the month for date. If you specify a day greater than the number of days in the current month, it causes the month to increment accordingly. For example, if the current month is 8 (September), and you specify 31 for the new day, the date is treated as October 1. The day becomes 1, and the month becomes 9 (October).

Returns

An integer representing the number of milliseconds between the new date and midnight, January 1, 1970.

See Also

Date.getDate( ), Date.setMonth( )


Table of Contents