Extracted condition checking in parseDate() to
shouldUpdateDatePatterns().