Access selectedDate from DateChooser : DateChooser « Components « Flex






Access selectedDate from DateChooser

Access selectedDate from DateChooser
       

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        private function initDC():void {
            date2.selectedDate = new Date (2003, 3, 10);
        }
      
    </mx:Script>
    <mx:DateChooser id="date2" creationComplete="initDC();" />
    <mx:TextInput text="{date2.selectedDate.fullYear}" />
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Use DateChooser to choose dateUse DateChooser to choose date
2.DateChooser control with DateChooser control with <mx:DateChooser>
3.DateChooser header styleDateChooser header style
4.DateChooser Day styleDateChooser Day style
5.Set Today style for DateChooserSet Today style for DateChooser
6.DateChooser control selectableRange, disabledRanges, disabledDaysDateChooser control selectableRange, disabledRanges, disabledDays
7.Set dayNames of DateChooser with initialize eventSet dayNames of DateChooser with initialize event
8.Set firstDayOfWeek of DateChooser with initialize eventSet firstDayOfWeek of DateChooser with initialize event
9.Set headerColor of DateChooser with initialize eventSet headerColor of DateChooser with initialize event
10.Set selectableRange of DateChooser with initialize eventSet selectableRange of DateChooser with initialize event
11.DateChooser scrolling eventDateChooser scrolling event
12.Set DateChooser displaying MonthSet DateChooser displaying Month
13.Set date range for DateChooserSet date range for DateChooser
14.Add a DateChooser controlAdd a DateChooser control
15.Date entry with DateChooserDate entry with DateChooser
16.Attach DateChooser to PopUpButtonAttach DateChooser to PopUpButton
17.A DateChooser controlA DateChooser control
18.DateChooser StylesDateChooser Styles
19.DateChooser SelectableDateChooser Selectable
20.Set dayNames, firstDayOfWeek, headerColor, and selectableRange properties of a DateChooser control by using an initialize event:Set dayNames, firstDayOfWeek, headerColor, and selectableRange properties of a DateChooser control by using an initialize event:
21.Programmatic DateChooser SelectorProgrammatic DateChooser Selector
22.Get full year from selected dateGet full year from selected date
23.Set selectedDate property in a functionSet selectedDate property in a function
24.Don't show todayDon't show today
25.Check if selected date is nullCheck if selected date is null