Initial implementation of toGreogorianCalendar() and parseDate().