Handle 2-digit and 4-digit strings for dates in DateConverter