I could not find any specs for dates before the reform to Gregorian calendar. - How should October 4, 1582 be formatted? - Is `1582-10-14` a valid date? I suspect that you are unconsciously assuming the proleptic Gregorian calendar, but not sure.