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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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
- A string representing the current date, in long form, formatted according to the
String
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()
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
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
- A string representing the current date, in short form, formatted according to the
String
currently defined locale.
334
ActionScript classes
method to return the current date, in long form,
getLocaleLongDate()
returns:

Advertisement

Table of Contents
loading

Table of Contents