DateChooser.firstDayOfWeek

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dateChooserInstance.firstDayOfWeek

Description

Property; a number indicating which day of the week (0-6, 0 being the first element of the dayNames array) is displayed in the first column of the DateChooser component. Changing this property changes the order of the day columns but has no effect on the order of the dayNames property. The default value is 0 (Sunday).

Example

The following example sets the first day of the week to Monday:

// Sets the first day of the week to Monday in the calendar.
my_dc.firstDayOfWeek = 1;

// Disables day 0 (Sunday). Even though Monday is now the first day in the DateChooser, Sunday is still array index 0.
my_dc.disabledDays = [0];

See also

DateChooser.dayNames