correct the dates