Mode: DateTimePickerExMode;
The Mode property determines the mode of date setting in the calendar.
Changing the mode of date setting results in changing of the component's appearance. The date is set by selecting one of the periods corresponding to the mode. The value of the CurrentDate property will correspond to the start of the selected period.
Executing the example requires a form, the Button1 button on this form and the DateTimePickerEx component named DateTimePickerEx1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
DateTimePickerEx1.Mode := DateTimePickerExMode.Months;
End Sub Button1OnClick;
On clicking the button the mode for date selection is set in the DateTimePickerEx1 component. The date is selected by selecting a month. Final date will correspond to the start of the selected month.
See also: