Correctly parse the year from a date string.