Use DateField to let user choose date : DateField « Components « Flex






Use DateField to let user choose date

Use DateField to let user 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:DateField text="12/05/2010" id="thisDateField"
            change="showMsg(thisDateField.selectedDate.toString())" />

    </mx:Panel>
</mx:Application>

   
    
    
  








Related examples in the same category

1.DateField form itemDateField form item
2.Use ActionScript to set initial selected date for a DateField controlUse ActionScript to set initial selected date for a DateField control
3.DateField Item EditorDateField Item Editor
4.DateField renderer for ListDateField renderer for List
5.Date Entry with DateFieldDate Entry with DateField
6.Use an array to set the disabledDays property for DateField.Use an array to set the disabledDays property for DateField.
7.Using DateField as List EditorUsing DateField as List Editor
8.Set the disabledDays property in two different ways: using tags and using tag attributesSet the disabledDays property in two different ways: using tags and using tag attributes
9.Set the formatString property to "MM/DD/YY" to display a two-digit yearSet the formatString property to
10.Use Date from a Calendar ControlUse Date from a Calendar Control