code: public void setLenient(boolean lenient)
      {
          calendar.setLenient(lenient);
          setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_NUMERIC, lenient);
          setBooleanAttribute(BooleanAttribute.PARSE_ALLOW_WHITESPACE, lenient);
      }
docs: 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() &amp; setBooleanAttribute() calls.
  This method supports prior functionality but may not support all
  future leniency control &amp; behavior of DateFormat. For control of pre 53 leniency,
  Calendar and DateFormat whitespace &amp; 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.
  
  @param lenient True specifies date/time interpretation to be lenient.
  @see android.icu.util.Calendar#setLenient
  @see #setBooleanAttribute(BooleanAttribute, boolean)
  @see #setCalendarLenient(boolean)