Correct format dates