commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <>
Subject Re: DateUtils confusion possibly a bug ?
Date Fri, 26 Oct 2007 02:21:17 GMT
On 10/25/07, Narahari 'n' Savitha <> wrote:
> Friends,
> This might have been asked before but I am unable to find a searchable
> archive for the LANG.
> Here it is.
> In the Example 1. which uses the DateUtisl.parseDate method the date I am
> providing is 14/32/2007. This is an invalid date but since the parseDate
> method uses a LENIENT SimpleDateFormat  object the dates are being parsed as
> valid.  This is not something that will help me.  I would rather, this throw
> a ParseException.
> Could we add a method called parseDateStrict or provide a setter/getter to
> set the strict attribute so that can in turn set the attribute on the
> SimpleDateFormat method ?

Off the bat, I don't see any reason why not.

Could you add an issue to JIRA requesting this improvement?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message