update date field