Partager via


DateFormat.CalendarLenient Property

Definition

Returns whether date/time parsing in the encapsulated Calendar object is lenient. -or- Specifies whether date/time parsing in the encapsulated Calendar object should be lenient.

public virtual bool CalendarLenient { [Android.Runtime.Register("isCalendarLenient", "()Z", "GetIsCalendarLenientHandler", ApiSince=24)] get; [Android.Runtime.Register("setCalendarLenient", "(Z)V", "GetSetCalendarLenient_ZHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("isCalendarLenient", "()Z", "GetIsCalendarLenientHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setCalendarLenient", "(Z)V", "GetSetCalendarLenient_ZHandler", ApiSince=24)>]
member this.CalendarLenient : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns whether date/time parsing in the encapsulated Calendar object is lenient.

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

Property setter documentation:

Specifies whether date/time parsing in the encapsulated Calendar object should be lenient. With lenient parsing, the parser may use heuristics to interpret inputs that do not precisely match this object's format. Without lenient parsing, inputs must match this object's format more closely.

Java documentation for android.icu.text.DateFormat.setCalendarLenient(boolean).

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