Corrects date field