Flash Lite 2.x and 3.0 ActionScript Language Reference

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.

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