Correct error in date format.