org.apache.commons.lang.time.DateUtils.parseDate appears to use
SimpleDateFormat to do its parsing with setLenient(true). This will
result in the acceptance of a date string like "20012007" against a
pattern like "MMddyyyy". This parsing will actually return a date of Fri
Aug 01 00:00:00 PDT 2008.
A suggestion for a future enhancement might be to create an additional
method for DateUtils named parseStrictDate, or something similar, which
applies setLenient(false) to its internal SimpleDateFormat parser.
- Jim
______________________________
James Watkin
ACIS Software Development
UCLA Anderson School
[EMAIL PROTECTED]
Voice: 1-310-825-5030
Fax: 1-310-825-4835
______________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]