EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Getlocalelongdate (Date.getlocalelongdate Method); Getlocaleshortdate (Date.getlocaleshortdate Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
334 ActionScript classes
getLocaleLongDate (Date.getLocaleLongDate
method)
public getLocaleLongDate() : String
Returns a string representing the current date, in long form, formatted according to the
currently defined locale.
Note: The format of the date depends on the mobile device and the locale.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
String - A string representing the current date, in long form, formatted according to the
currently defined locale.
Example
The following example uses the constructor to create a Date object based on the current time.
It also uses the
getLocaleLongDate() method to return the current date, in long form,
formatted according to the currently defined locale, as follows:
var my_date:Date = new Date();
trace(my_date.getLocaleLongDate());
The following are sample return values that getLocaleLongDate() returns:
October 16, 2005
16 October 2005
getLocaleShortDate (Date.getLocaleShortDate
method)
public getLocaleShortDate() : String
Returns a string representing the current date, in short form, formatted according to the
currently defined locale.
Note: The format of the date depends on the mobile device and the locale.
Availability: ActionScript 1.0; Flash Lite 2.0
Returns
String - A string representing the current date, in short form, formatted according to the
currently defined locale.

Table of Contents

Related product manuals