GetDateWeekday

Availability

Flash Lite 1.1.

Description

Returns a numeric value that is the name of the day of the current date, represented as a numeric value.

Command

Parameters

Value returned

"GetDateWeekday"

None.

-1: Not supported.

0: Sunday.

1: Monday.

2: Tuesday.

3: Wednesday.

4: Thursday.

5: Friday.

6: Saturday.

Example

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;

See also

GetDateDay, GetDateMonth, GetDateYear