DateFormat.Lenient Property
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 whether both date/time parsing in the encapsulated Calendar object and DateFormat whitespace & numeric processing is lenient. -or- Specifies whether date/time parsing is to be lenient.
public virtual bool Lenient { [Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler", ApiSince=24)] get; [Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("isLenient", "()Z", "GetIsLenientHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setLenient", "(Z)V", "GetSetLenient_ZHandler", ApiSince=24)>]
member this.Lenient : bool with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
Returns whether both date/time parsing in the encapsulated Calendar object and DateFormat whitespace & numeric processing is lenient.
Java documentation for android.icu.text.DateFormat.isLenient()
.
Property setter documentation:
Specifies whether 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. Without lenient parsing, inputs must match this object's format more closely. <br><br> <b>Note:</b> ICU 53 introduced finer grained control of leniency (and added new control points) making the preferred method a combination of setCalendarLenient() & setBooleanAttribute() calls. This method supports prior functionality but may not support all future leniency control & behavior of DateFormat. For control of pre 53 leniency, Calendar and DateFormat whitespace & numeric tolerance, this method is safe to use. However, mixing leniency control via this method and modification of the newer attributes via setBooleanAttribute() may produce undesirable results.
Java documentation for android.icu.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.