As for year before the year 1000, they are left padded with 0 to be 4 digits too, it's looks weird I agree but the value is correct and the age calculation is performed properly.