From the category archives:

DateField

Setting selectable ranges in the Flex DateField control

by Peter deHaan December 17, 2007

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

Read the full article →

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

by Peter deHaan December 17, 2007

The following example shows how you can set a minimum and maximum allowable year in the Flex DateField control by setting the minYear and maxYear properties.
Full code after the jump.

Read the full article →

Embedding fonts for the Flex DateField control

by Peter deHaan December 16, 2007

The following example shows how you can embed fonts for use with the DateField control in Flex. Note that we embed both the normal and bold font weights since by default the month and year are bold in the DateChooser sub-component.
Full code after the jump.

Read the full article →

Changing the next and previous month navigation icons on a DateField control in Flex

by Peter deHaan December 16, 2007

The following example shows how you can change the next/previous month navigation icons on a Flex DateField control by setting the dateChooserStyleName style and setting various skin values.
Full code after the jump.

Read the full article →

Changing the icon color on a DateField control in Flex

by Peter deHaan December 16, 2007

The following example shows how you can customize the icon color on the next/previous month/year buttons in a Flex DateField control by setting the iconColor style.
Full code after the jump.

Read the full article →

Enabling year navigation in a Flex DateField control

by Peter deHaan December 15, 2007

The following example shows how you can toggle year navigation in a Flex DateField control by setting the yearNavigationEnabled property.
Full code after the jump.

Read the full article →

Adding suffixes to month names and years in the DateField control

by Peter deHaan December 15, 2007

The following example shows how you can add suffixes to month names and years in the Flex DateField control by setting the monthSymbol and yearSymbol properties.
Full code after the jump.

Read the full article →

Converting between dates and strings using the DateField class in Flex

by Peter deHaan December 15, 2007

The following example shows how you can convert Date objects to String objects using the static DateField.dateToString() method in Flex. As an added bonus, the example also shows how you can convert String objects to Date Objects using the static DateField.stringToDate() method.
Full code after the jump.

Read the full article →

Setting a custom label function on a Flex DateField control

by Peter deHaan December 12, 2007

The following example shows how you can format the displayed date in a DateField control by setting the labelFunction property and creating a custom label function.
Full code after the jump.

Read the full article →

Setting the DateChooser control’s dayNames property and firstDayOfWeek property

by Peter deHaan August 23, 2007

This is kind of silly, but I was looking through the DateBase class today and figured “why not?”. This example takes a quick look at setting the DateChooser control’s dayNames property and switching between the default values (“S”, “M”, “T”, …, “S”) with the longer versions such as “Sun”, “Mon”, “Tue”, …, “Sat”, and the [...]

Read the full article →

Formatting dates using the DateFormatter

by Peter deHaan July 30, 2007

Another basic little example showing how to format the text in a DateField control using the DateFormatter and the DateField control’s labelFunction property. This entry also shows the pretty basic trick of creating a separate ActionScript class file that holds the day names as constants so you don’t constantly have to think whether Monday is [...]

Read the full article →