DateTimePicker.Mode

Syntax

Mode: PP.Ui.MonthCalendarMode;

Description

The Mode property returns the display mode of the calendar and the component entry field.

Comments

The value of the property consists of elements of the MonthCalendarMode enumeration.

Example

To execute the example, create the DateTimePicker component (see Example of Creating the DateTimePicker Component) named DTP. Set the two value for the Mode property in order to display the component date in the months mode:

DTP.setMode(2);

After executing the example the time and date editor is displayed in the months mode. The entry field and the calendar of date choosing has the following view:

See also:

DateTimePicker