Sdílet prostřednictvím


DateFormat.Calendar Property

Definition

Returns the calendar associated with this date/time formatter. -or- Sets the calendar to be used by this date format.

public virtual Android.Icu.Util.Calendar? Calendar { [Android.Runtime.Register("getCalendar", "()Landroid/icu/util/Calendar;", "GetGetCalendarHandler", ApiSince=24)] get; [Android.Runtime.Register("setCalendar", "(Landroid/icu/util/Calendar;)V", "GetSetCalendar_Landroid_icu_util_Calendar_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getCalendar", "()Landroid/icu/util/Calendar;", "GetGetCalendarHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setCalendar", "(Landroid/icu/util/Calendar;)V", "GetSetCalendar_Landroid_icu_util_Calendar_Handler", ApiSince=24)>]
member this.Calendar : Android.Icu.Util.Calendar with get, set

Property Value

the calendar associated with this date/time formatter.

Attributes

Remarks

Property getter documentation:

Returns the calendar associated with this date/time formatter.

Java documentation for android.icu.text.DateFormat.getCalendar().

Property setter documentation:

Sets the calendar to be used by this date format. Initially, the default calendar for the specified or default locale is used.

Java documentation for android.icu.text.DateFormat.setCalendar(android.icu.util.Calendar).

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