methods in place for the toGregorianDate API