update date directive