handle dates with more than 4 digits in year