Match expected format before attempting to parse dates