Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.util.Date and SimpleDateFormat

807580Dec 16 2009 — edited Dec 30 2009
Was playing around with date formats and ran across this.
SimpleDateFormat lDateFormat = new SimpleDateFormat("MMddyyyyy");
Date lDate = lDateFormat.parse("11002010");
System.out.println( lDate);
I was just wondering why it returns 10312010
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 27 2010
Added on Dec 16 2009
22 comments
272 views