Flash Lite 2.x and 3.0 ActionScript Language Reference

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.

Returns

String - A string representing the current date, in short 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 getLocaleShortDate() method to return the current date, in short form, formatted according to the currently defined locale, as follows:

var my_date:Date = new Date();
trace(my_date.getLocaleShortDate());

The following are sample return values that getLocaleLongDate() returns:

10/16/2005
16-10-2005