Please explain usage method isLenient() in package java.text.DateFormat; and if possible give me a code about this method. Thanks. Lam nguyen.
posted 15 years ago
By default isLenient() is true which means that if the String in the parse() method isn't exactly in the right format it will still try to get a date from it. If setLenient(false) then the string must be in exactly the format defined by the DateFormat object.