Changed from Date to GregorianCalendar.