User Guide

Table Of Contents
fscommand2() 137
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
GetLocaleShortDate
Availability
Flash Lite 1.1.
Description
Sets a parameter to a string that represents the current date, in abbreviated form, formatted
according to the currently defined locale.
Example
The following example attempts to get the short form of the current date into the shortDate
variable. It also sets the value of
status to report whether it was able to do so.
status = fscommand2("GetLocaleShortDate", "shortdate");
trace (shortdate); // output: 06/14/05
See also
GetLocaleLongDate, GetLocaleTime
Command Parameters Value
returned
"GetLocaleShortDate"
shortdate
String variable to receive the long form
of the value of the current date, such as
"10/16/
2004"
or "16-10-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
shortdate is a multicharacter,
variable-length string. The actual formatting
depends on the device and the locale.
-1: Not
supported.
0: Supported.