Partager via


DateFormat.Calendar Property

Definition

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

public virtual Java.Util.Calendar Calendar { [Android.Runtime.Register("getCalendar", "()Ljava/util/Calendar;", "GetGetCalendarHandler")] get; [Android.Runtime.Register("setCalendar", "(Ljava/util/Calendar;)V", "GetSetCalendar_Ljava_util_Calendar_Handler")] set; }
[<get: Android.Runtime.Register("getCalendar", "()Ljava/util/Calendar;", "GetGetCalendarHandler")>]
[<set: Android.Runtime.Register("setCalendar", "(Ljava/util/Calendar;)V", "GetSetCalendar_Ljava_util_Calendar_Handler")>]
member this.Calendar : Java.Util.Calendar with get, set

Property Value

the calendar associated with this date/time formatter.

Attributes

Remarks

Property getter documentation:

Gets the calendar associated with this date/time formatter.

Java documentation for java.text.DateFormat.getCalendar().

Property setter documentation:

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

Any java.util.TimeZone TimeZone and #isLenient() leniency values that have previously been set are overwritten by newCalendar's values.

Java documentation for java.text.DateFormat.setCalendar(java.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