I came upon a strange behavior that has left me curious and without a satisfactory explanation as yet.
For simplicity, I\'ve reduced the symptoms I\'ve noticed to th
System.out.println(new SimpleDateFormat().getCalendar());
System.out.println(new GregorianCalendar());
comparing above code is comparing apples and pears
The first provides you a tool to parse String into Dates and vice versa The second is a DateUtility that allows you to manipulate Dates
There is not really a reason why the should provide similar output.
Compare it with the following
System.out.println(new String() );
System.out.println(new Date().toString() );
both lines will output a String but logicly you wouldnt expect the same result