You are almost there .. but YEAR, MONTH refer to transfers, and what you print is the serial number of these transfers. You want real value using these enumerations with GregorianCalendar.get (Calendar.Value).
Example
GregorianCalendar date = new GregorianCalendar(2010, 5, 12) { @Override public String toString() { return String.format("%s/%s/%s", get(YEAR), get(MONTH)+1, get(DAY_OF_MONTH)); } };
that will fix your problems.
source share