Name
Date.setDate( ) Method — assign the day of the month
Availability
Flash 5
Synopsis
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 will cause the month to increment accordingly. For example, if the currentmonth
is 8 (September) and you specify 31 for the newday
, it will be treated as October 1. Theday
will become 1 and themonth
will become 9 (October).
Returns
An integer representing the number of milliseconds between the new date and midnight, January 1, 1970.
See Also
Date.getDate( )
Get ActionScript: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.