updates the date