accept date button working