I'm trying to figure out how to compare the current date with a future date for the purpose of adding a timeout.
I've tried the following but its not working:
endTime = new Date();
trialTime = new Date();
boolean test = endTime.before(trialTime);
Changing the month in endTime doesn't alter the test value. It always returns as false
Any help is greatly appreciated.