ActionScript 2.0 Components Language Reference |
|
|
|
| DateField component > DateField.dateFormatter | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
dateFieldInstance.dateFormatter
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.
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();
};
|
|
|
|