I have this simple example:
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/YY");
System.out.println( sdf.format(new Date()));
try {
System.out.println( sdf.parse("10/18/14") );
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
In the console, I'm getting 10/18/14 Sun Dec 29 00:00:00 EST 2013
Any explanation why sdf.parse return dec 29th 2013 in stead of Oct 18th 2014