Hi,
I want to compare a date (that a user inputs) and validate that it is today or later.
I create a Date from what the user inputs, but I want to know how I can compare it with the Date of today. If I user Calendar.getInstance().getTime() I get the exact time of now, e.g. 2006-01-16 13:01:40, but I want to compare it with 2006-01-16 00:00:00 e.g the first second of todays date. How can I perform that?
Best regards
I want to compare a date (that a user inputs) and validate that it is today or later.
I create a Date from what the user inputs, but I want to know how I can compare it with the Date of today. If I user Calendar.getInstance().getTime() I get the exact time of now, e.g. 2006-01-16 13:01:40, but I want to compare it with 2006-01-16 00:00:00 e.g the first second of todays date. How can I perform that?
Best regards