update date for today function