Java 1.6 I execute the following code:
SimpleDateFormat sdf = new SimpleDateFormat("MMddyy");
Date d = sdf.parse("013355");
and it returns the date
Wed Feb 02 00:00:00 EST 1955
no parse exception?
What am I missing?
Greg
Daniele Futtorovic - 16 Feb 2008 01:41 GMT
> Java 1.6 I execute the following code:
>
[quoted text clipped - 8 lines]
>
> What am I missing?
<http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html#setLenient(boolean)>
<http://java.sun.com/javase/6/docs/api/java/util/Calendar.html#setLenient(boolean)>