1 , |
02 | private function doLabel(item: Date ): String { |
03 | return dateFormatter.format(item); |
04 | } |
05 | <mx:DateFormatter id= "dateFormatter" formatString= "YYYY-MM-DD" /> |
06 | <mx:DateField monthNames= '["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]' yearNavigationEnabled= "true" labelFunction= "doLabel" width= "120" /> |
07 | |
08 | |
09 | 2 , |
10 | <mx:DateField monthNames= '["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]' formatString= "YYYY-MM-DD" width= "120" /> |