corrects date format