Name

Date.setUTCDate( ) Method — assign the day of the month (UTC time)

Availability

Flash 5

Synopsis

date.setUTCDate(day)

Arguments

day

An integer from 1 to 31, representing the new day of the month for date in UTC time. 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 current month is 8 (September) and you specify 31 for the new day, it will be treated as October 1. The day will become 1 and the month will become 9 (October).

Returns

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

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.