correction of date-pattern