correction of date to weekday