If I have:
DatePicker dp = new DataPicker();
and at some point I want to know if the data is greater than today, how can I do it?
Example: if I want to book a room in a hotel from 21/04/2014 well, it should be impossible because today is 28/07/2014.
How can I do it in JavaFX ?
To ensure that a given
Date chosenDate
is after today, you can checkNote that
chosenDate
should be aDate
with hour, minute and second set to0
since else it could accept aDate
with the same day as today but a later hour than now.