A2v10 Platform documentation
UK


DatePicker Control

Represents a date selector.

Inherits: ValuedControl : Control : UIElement : UIElementBase

Properties

Name Type Description
Align TextAlign Text alignment.
View DatePickerView Type of selector. Possible values:
  • Day - (by default) date selection.
  • Month - month and year selection.
Placement DropDownPlacement The direction of the selector’s "dropout". Possible values:
  • BottomLeft - downwards with the left edge fixed.
  • BottomRight - downwards with the right edge fixed.
  • TopLeft - upwards with the left edge fixed.
  • TopRight - upwards with the right edge fixed.
Size ControlSize Element size. Possible values:
  • Default, Normal - (by default) element of normal size.
  • Large - increased element size.
(other values of the ControlSize listing are not supported).
YearCutOff String Only for manual input. Limit for two-digit values of the year. Two-digit number. If it starts with "+" or "-", then the number is considered regarding the current year. If the entered value is less than or equal to the limit, then this is the 21st century, otherwise the 20th.
Base item properties

Example

Note! When the date is changed, the time will not change. This allows you to enter the date and time using the two controls - TimePicker and DatePicker.