Update method for date.