I am having a problem in finding out whether a date inserted by the user happens to be before the current todays date.
The problem is this.. The date that the user inputs is in the format of simpledateforma t dd-MM-yyyy. Therefore i cannot use the date.before() since simple date format is of type calender. Also the date that the user is going to insert is going to be placed in a text field. Therefore i need to get it from there and compare it to the current's date. I tried to use the calender.getIns tance(), though i did not suceed.
If someone can help me, it would be really appreciated. Thanks
The problem is this.. The date that the user inputs is in the format of simpledateforma t dd-MM-yyyy. Therefore i cannot use the date.before() since simple date format is of type calender. Also the date that the user is going to insert is going to be placed in a text field. Therefore i need to get it from there and compare it to the current's date. I tried to use the calender.getIns tance(), though i did not suceed.
If someone can help me, it would be really appreciated. Thanks
Comment