DateFormat.Lenient Property

Definition

Tell whether date/time parsing is to be lenient. -or- Specify whether or not date/time parsing is to be lenient.

public virtual bool Lenient { [Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler")] get; [Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler")] set; }
[<get: Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler")>]
[<set: Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler")>]
member this.Lenient : bool with get, set

Property Value

true if the #calendar is lenient; false otherwise.

Attributes

Remarks

Property getter documentation:

Tell whether date/time parsing is to be lenient. This method is equivalent to the following call. <blockquote>

{@code
            getCalendar().isLenient()
            }

</blockquote>

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

Property setter documentation:

Specify whether or not date/time parsing is to be lenient. With lenient parsing, the parser may use heuristics to interpret inputs that do not precisely match this object's format. With strict parsing, inputs must match this object's format.

This method is equivalent to the following call. <blockquote>

{@code
            getCalendar().setLenient(lenient)
            }

</blockquote>

This leniency value is overwritten by a call to #setCalendar(java.util.Calendar) setCalendar().

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