update date in template