changed how dates are parsed