Language

DateFormatField Enum

Definition

public enum DateFormatField
type DateFormatField = 
Inheritance
DateFormatField

Fields

Name Value Description
Era 0

FieldPosition selector for 'G' field alignment, corresponding to the Calendar.ERA field.

Android reference for android.icu.text.DateFormat.ERA_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Year 1

FieldPosition selector for 'y' field alignment, corresponding to the Calendar.YEAR field.

Android reference for android.icu.text.DateFormat.YEAR_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Month 2

FieldPosition selector for 'M' field alignment, corresponding to the Calendar.MONTH field.

Android reference for android.icu.text.DateFormat.MONTH_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Date 3

FieldPosition selector for 'd' field alignment, corresponding to the Calendar.DATE field.

Android reference for android.icu.text.DateFormat.DATE_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

HourOfDay1 4

FieldPosition selector for 'k' field alignment, corresponding to the Calendar.HOUR_OF_DAY field. HOUR_OF_DAY1_FIELD is used for the one-based 24-hour clock. For example, 23:59 + 01:00 results in 24:59.

Android reference for android.icu.text.DateFormat.HOUR_OF_DAY1_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

HourOfDay0 5

FieldPosition selector for 'H' field alignment, corresponding to the Calendar.HOUR_OF_DAY field. HOUR_OF_DAY0_FIELD is used for the zero-based 24-hour clock. For example, 23:59 + 01:00 results in 00:59.

Android reference for android.icu.text.DateFormat.HOUR_OF_DAY0_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Minute 6

FieldPosition selector for 'm' field alignment, corresponding to the Calendar.MINUTE field.

Android reference for android.icu.text.DateFormat.MINUTE_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Second 7

FieldPosition selector for 's' field alignment, corresponding to the Calendar.SECOND field.

Android reference for android.icu.text.DateFormat.SECOND_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FractionalSecond 8

[icu] FieldPosition selector for 'S' field alignment, corresponding to the Calendar.MILLISECOND field. Note: Time formats that use 'S' can display a maximum of three significant digits for fractional seconds, corresponding to millisecond resolution and a fractional seconds sub-pattern of SSS. If the sub-pattern is S or SS, the fractional seconds value will be truncated (not rounded) to the number of display places specified. If the fractional seconds sub-pattern is longer than SSS, the additional display places will be filled with zeros.

Android reference for android.icu.text.DateFormat.FRACTIONAL_SECOND_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Millisecond 8

Alias for FRACTIONAL_SECOND_FIELD.

Android reference for android.icu.text.DateFormat.MILLISECOND_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DayOfWeek 9

FieldPosition selector for 'E' field alignment, corresponding to the Calendar.DAY_OF_WEEK field.

Android reference for android.icu.text.DateFormat.DAY_OF_WEEK_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DayOfYear 10

FieldPosition selector for 'D' field alignment, corresponding to the Calendar.DAY_OF_YEAR field.

Android reference for android.icu.text.DateFormat.DAY_OF_YEAR_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DayOfWeekInMonth 11

FieldPosition selector for 'F' field alignment, corresponding to the Calendar.DAY_OF_WEEK_IN_MONTH field.

Android reference for android.icu.text.DateFormat.DAY_OF_WEEK_IN_MONTH_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

WeekOfYear 12

FieldPosition selector for 'w' field alignment, corresponding to the Calendar.WEEK_OF_YEAR field.

Android reference for android.icu.text.DateFormat.WEEK_OF_YEAR_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

WeekOfMonth 13

FieldPosition selector for 'W' field alignment, corresponding to the Calendar.WEEK_OF_MONTH field.

Android reference for android.icu.text.DateFormat.WEEK_OF_MONTH_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AmPm 14

FieldPosition selector for 'a' field alignment, corresponding to the Calendar.AM_PM field.

Android reference for android.icu.text.DateFormat.AM_PM_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Hour1 15

FieldPosition selector for 'h' field alignment, corresponding to the Calendar.HOUR field. HOUR1_FIELD is used for the one-based 12-hour clock. For example, 11:30 PM + 1 hour results in 12:30 AM.

Android reference for android.icu.text.DateFormat.HOUR1_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Hour0 16

FieldPosition selector for 'K' field alignment, corresponding to the Calendar.HOUR field. HOUR0_FIELD is used for the zero-based 12-hour clock. For example, 11:30 PM + 1 hour results in 00:30 AM.

Android reference for android.icu.text.DateFormat.HOUR0_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Timezone 17

FieldPosition selector for 'z' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields.

Android reference for android.icu.text.DateFormat.TIMEZONE_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

YearWoy 18

[icu] FieldPosition selector for 'Y' field alignment, corresponding to the Calendar.YEAR_WOY field.

Android reference for android.icu.text.DateFormat.YEAR_WOY_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DowLocal 19

[icu] FieldPosition selector for 'e' field alignment, corresponding to the Calendar.DOW_LOCAL field.

Android reference for android.icu.text.DateFormat.DOW_LOCAL_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ExtendedYear 20

[icu] FieldPosition selector for 'u' field alignment, corresponding to the Calendar.EXTENDED_YEAR field.

Android reference for android.icu.text.DateFormat.EXTENDED_YEAR_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

JulianDay 21

[icu] FieldPosition selector for 'g' field alignment, corresponding to the Calendar.JULIAN_DAY field.

Android reference for android.icu.text.DateFormat.JULIAN_DAY_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MillisecondsInDay 22

[icu] FieldPosition selector for 'A' field alignment, corresponding to the Calendar.MILLISECONDS_IN_DAY field.

Android reference for android.icu.text.DateFormat.MILLISECONDS_IN_DAY_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneRfc 23

[icu] FieldPosition selector for 'Z' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields.

Android reference for android.icu.text.DateFormat.TIMEZONE_RFC_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneGeneric 24

[icu] FieldPosition selector for 'v' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields. This displays the generic zone name, if available.

Android reference for android.icu.text.DateFormat.TIMEZONE_GENERIC_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

StandaloneDay 25

[icu] FieldPosition selector for 'c' field alignment, corresponding to the Calendar.DAY_OF_WEEK field. This displays the stand alone day name, if available.

Android reference for android.icu.text.DateFormat.STANDALONE_DAY_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

StandaloneMonth 26

[icu] FieldPosition selector for 'L' field alignment, corresponding to the Calendar.MONTH field. This displays the stand alone month name, if available.

Android reference for android.icu.text.DateFormat.STANDALONE_MONTH_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Quarter 27

[icu] FieldPosition selector for 'Q' field alignment, corresponding to the Calendar.MONTH field. This displays the quarter.

Android reference for android.icu.text.DateFormat.QUARTER_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

StandaloneQuarter 28

[icu] FieldPosition selector for 'q' field alignment, corresponding to the Calendar.MONTH field. This displays the stand alone quarter, if available.

Android reference for android.icu.text.DateFormat.STANDALONE_QUARTER_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneSpecial 29

[icu] FieldPosition selector for 'V' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields. This displays the fallback timezone name when VVVV is specified, and the short standard or daylight timezone name ignoring commonlyUsed when a single V is specified.

Android reference for android.icu.text.DateFormat.TIMEZONE_SPECIAL_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

YearName 30

[icu] FieldPosition selector for 'U' field alignment, corresponding to the Calendar.YEAR field. This displays the cyclic year name, if available.

Android reference for android.icu.text.DateFormat.YEAR_NAME_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneLocalizedGmtOffset 31

[icu] FieldPosition selector for 'O' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields. This displays the localized GMT format.

Android reference for android.icu.text.DateFormat.TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneIso 32

[icu] FieldPosition selector for 'X' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields. This displays the ISO 8601 local time offset format or UTC indicator ("Z").

Android reference for android.icu.text.DateFormat.TIMEZONE_ISO_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TimezoneIsoLocal 33

[icu] FieldPosition selector for 'x' field alignment, corresponding to the Calendar.ZONE_OFFSET and Calendar.DST_OFFSET fields. This displays the ISO 8601 local time offset format.

Android reference for android.icu.text.DateFormat.TIMEZONE_ISO_LOCAL_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AmPmMidnightNoon 35

[icu] FieldPosition selector for 'b' field alignment. No related Calendar field. This displays the fixed day period (am/pm/midnight/noon).

Android reference for android.icu.text.DateFormat.AM_PM_MIDNIGHT_NOON_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FlexibleDayPeriod 36

[icu] FieldPosition selector for 'B' field alignment. No related Calendar field. This displays the flexible day period.

Android reference for android.icu.text.DateFormat.FLEXIBLE_DAY_PERIOD_FIELD.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to