Use DateChooser to choose date
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
public function showMsg(msg:String):void{
mx.controls.Alert.show(msg);
}
</mx:Script>
<mx:Panel title="Profile" verticalCenter="0" horizontalCenter="0">
<mx:DateChooser id="thisDateChooser" maxYear="2010"
minYear="2006" selectedDate="{new Date(2008,10, 15)}"
change="showMsg(thisDateChooser.selectedDate.toString())">
</mx:DateChooser>
</mx:Panel>
</mx:Application>
Related examples in the same category