I am working on Java web application.
In the initila webpage of my application,
there is a text box to enter a Date (dd.MM.yyyyy format).
My requirement is to check the entered date should not be greater than today’s date.(when submitting this page by clicking on submit button.)
Thanks in Advance.
Ham !== Hamster
The date documentation is what you need.
Warning: months are set from 0 to 11
Use a second date for todays date, and use getTime to compare the two.
Thanks for your inputs.
I think, You know that,
Thank god for that, we don’t see too much of Java around these parts so please forgive my tired reply.
The date documentation, which you mentioned is useful for validating my requirement.