Tag Archive for 'rangeend'

04
May

Setting a minimum and maximum allowable year in the DateChooser control in Flex

The following examples show how you can set a minimum and maximum allowable year in the Flex DateChooser control by setting the minYear and maxYear properties.

Full code after the jump.

Continue reading ‘Setting a minimum and maximum allowable year in the DateChooser control in Flex’

17
Dec

Setting selectable ranges in the Flex DateField control

The following example shows the various usages of the selectableRange property for the DateField control in Flex.

Full code after the jump.

Continue reading ‘Setting selectable ranges in the Flex DateField control’

31
Jul

Calculating the number of days between two selected dates in a DateChooser control

Here’s a marginally more interesting sample. I was playing around with the DateChooser (calendar) control and the selectableRange property and figured I’d make a simple application to calculate the differences between two selected dates. The example creates a selectable range of dates from the current date to current date plus 1 year. Users can select any single or range of dates between the start date and end date, and Flex calculates the number of days the user selected using some basic math.

Full code after the jump.

Continue reading ‘Calculating the number of days between two selected dates in a DateChooser control’