Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetDateYear | |||
Returns a four-digit numeric value that is the year of the current date.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
None. |
-1: Not supported. 0 to 9999: The current year. |
Flash Lite 1.1.
The following example collects the date information and constructs a complete date string:
today = fscommand2("GetDateDay");
weekday = fscommand2("GetDateWeekday");
thisMonth = fscommand2("GetDateMonth");
thisYear = fscommand2("GetDateYear");
when = weekday add ", " add thisMonth add " " add today add ", " add thisYear;
GetDateDay, GetDateMonth, GetDateWeekday
|
|
|
|