Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines User Manual

Page of 86
Platform integration commands
35
The 
GetDateDay()
 function is executed immediately upon invocation. If this function is not 
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetDateDay” )
Return value
A value of -1 if the function is not supported; otherwise, the current day, returned as a 
number (1-31).
GetDateMonth()
The 
GetDateMonth()
 function returns the month of the current date. It is a numeric value 
(without a leading zero). Valid months are 1–12.
The 
GetDateMonth()
 function is executed immediately upon invocation. If this function is not 
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetDateMonth” )
Return value
A value of -1 if the function is not supported; otherwise, the current month, returned as a number 
(1-12).
GetDateWeekday()
The 
GetDateWeekday()
 function returns a numeric value that is the name of the day of the 
current date. Valid days are 0–6, where 0 represents Sunday, 1 represents Monday, 2 represents 
Tuesday, 3 represents Wednesday, 4 represents Thursday, 5 represents Friday, and 6 represents 
Saturday.
The 
GetDateWeekday()
 function is executed immediately upon invocation. If this function is 
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetDateWeekday” )
Return value
A value of -1 if the function is not supported; otherwise, the current weekday, returned as a 
number (0-6).
GetDateYear()
The 
GetDateYear()
 function returns a numeric, four-digit value that is the year of the 
current date. 
The 
GetDateYear()
 function is executed immediately upon invocation. If this function is not 
supported, a value of -1 is returned.