minor change on parseDate