Hi i have to disable button button based on date,my requirement is i will have json that are having values checkinStartDate and checkinEndDate
{
"checkinStartDate": "10/22/2016 09:10:04 AM",
"checkinEndDate": "10/22/2016 19:10:04 PM"
}
For example today's date is 10/22/2016 then condition is mentioned below. I have to enable button before 1 hr(10/22/2016 08:10:04 AM) of checkinStartDate and 1 hr(10/22/2016 20:10:04 PM) after checkinEndDate.other than this time button should be in disabled mode Any help will be greatfull.