GetLocaleLongDate

Availability

Flash Lite 1.1.

Description

Sets a parameter to a string that represents the current date, in long form, formatted according to the currently defined locale.

Command

Parameters

Value returned

"GetLocaleLongDate"

longdate  String variable to receive the long form of the value of the current date, such as "October 16, 2004" or "16 October 2004".

It can be either the name of a variable or a string value that contains the name of a variable.

The value returned in longdate is a multicharacter, variable-length string. The
actual formatting depends on the device and the locale.

-1: Not supported.

0: Supported.

Example

The following example attempts to return the long form of the current date in the longDate variable. It also sets the value of status to report whether it was able to do so.

status = fscommand2("GetLocaleLongDate", "longdate");
trace (longdate);                                        // output: Tuesday, June 14, 2005

See also

GetLocaleShortDate, GetLocaleTime