I am encountering a problem for my application. I am trying to do something to prevent the user from selecting the date and time that has already past. If the user selects date and the time that has past, an error message will be displayed. The user will be selecting the date and time from the datePicker and timePicker. Anyone have any idea on doing it? Any help will be greatly appreciated. Thanks a lot!
Share
If you’re setting the picker value in edittext, you can do this: