ending datetime with workevents