My requirement is reshedule the exam , in this i have contain timegap . Timegap is difference of exam startdate and exam duedate. We reshedule the exam before 24 hours of the examstartdate(currentdate). Here i take the reshudele( button) ,in this we how to implement disable and enable conditions depends on timegap. It is timegap is >= 24 hours of (exam start date )the button will be work and <24hours(exam start date ) the button not work. In this how we implement.
On the button General settings you have the Disable condition which can be set using Condition(expression) or Condition(When rule) options. In your case you can try to use either of this options to achieve your requirement.