trouble with update date type