In code listing 12.7, instead of using
I tried to re-use the same mDate object (instead of creating a new one as above) by updating the Year, month and day fields so as to preserve the time (and not having it reset to 00:00:00). But I faced a weird problem in that for the Date object passed back to CrimeFragment, date.toString() method turns the year 20yy into 39yy (so the year 2010 is turned into 3910, 2012 becomes 3912). But this problem mysteriously vanishes while using the new GregorianCalendar() object.
So I was wondering if others have also encountered this issue and if there was a reason for this odd behavior.