Skip to content

CupertinoDatePickerMode

Inherits: Enum

Different display modes of CupertinoDatePicker.

Properties

  • DATE

    Mode that shows the date in month, day of month, and year.

  • DATE_AND_TIME

    Mode that shows the date as day of the week, month, day of month and

  • MONTH_YEAR

    Mode that shows the date in month and year.

  • TIME

    Mode that shows the date in hour, minute, and (optional) an AM/PM designation.

Properties#

DATE = 'date' class-attribute instance-attribute #

Mode that shows the date in month, day of month, and year. Name of month is spelled in full. Column order is subject to internationalization.

Example: July | 13 | 2012

DATE_AND_TIME = 'dateAndTime' class-attribute instance-attribute #

Mode that shows the date as day of the week, month, day of month and the time in hour, minute, and (optional) an AM/PM designation. The AM/PM designation is shown only if CupertinoDatePicker does not use 24h format, i.e. if use_24h_format is False. Column order is subject to internationalization.

Example: Fri Jul 13 | 4 | 14 | PM

MONTH_YEAR = 'monthYear' class-attribute instance-attribute #

Mode that shows the date in month and year. Name of month is spelled in full. Column order is subject to internationalization.

Example: July | 2012

TIME = 'time' class-attribute instance-attribute #

Mode that shows the date in hour, minute, and (optional) an AM/PM designation. The AM/PM designation is shown only if CupertinoDatePicker does not use 24h format, i.e. if use_24h_format is False. Column order is subject to internationalization.

Example: 4 | 14 | PM