Language

DateFormat.Field.OfCalendarField(CalendarField) Method

Definition

Returns the Field constant that corresponds to the Calendar field calendarField.

[Android.Runtime.Register("ofCalendarField", "(I)Landroid/icu/text/DateFormat$Field;", "", ApiSince=24)]
public static Android.Icu.Text.DateFormat.Field OfCalendarField(Android.Icu.Util.CalendarField calendarField);
[<Android.Runtime.Register("ofCalendarField", "(I)Landroid/icu/text/DateFormat$Field;", "", ApiSince=24)>]
static member OfCalendarField : Android.Icu.Util.CalendarField -> Android.Icu.Text.DateFormat.Field

Parameters

calendarField
CalendarField

Calendar field constant

Returns

Field associated with the calendarField, or null if no associated Field is available.

Attributes

Remarks

Returns the Field constant that corresponds to the Calendar field calendarField. If there is no corresponding Field is available, null is returned.

Android reference for android.icu.text.DateFormat.Field.ofCalendarField.

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