DateField.dateFormatter

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dateFieldInstance.dateFormatter

Description

Property; a function that formats the date to be displayed in the text field. The function must receive a Date object as parameter, and return a string in the format to be displayed.

Example

The following example sets the function to return the format of the date to be displayed:

my_df.dateFormatter = function(d:Date){
    return d.getFullYear()+"/ "+(d.getMonth()+1)+"/ "+d.getDate();
};