update date to Date