Makes sure the date is correct.