DateFormat.Field.OfCalendarField(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the DateFormat.Field
instance for the given calendar
field.
[Android.Runtime.Register("ofCalendarField", "(I)Ljava/text/DateFormat$Field;", "")]
public static Java.Text.DateFormat.Field OfCalendarField (int calendarField);
[<Android.Runtime.Register("ofCalendarField", "(I)Ljava/text/DateFormat$Field;", "")>]
static member OfCalendarField : int -> Java.Text.DateFormat.Field
Parameters
- calendarField
- Int32
a calendar field constant.
Returns
- Attributes
Exceptions
if calendarField
is negative or greater than the
field count of Calendar
.
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.