Changed type of fields in DatePair to Calendar

Time properties should be stored using type Calendar. But when they are constructed, the constructors of GregorianCalendar should be used.