+ 2

How to compare date entered by user and today's date in android studio?

I only need to compare date and no need of time.

27th Jan 2018, 3:35 PM
Muthumani V
Muthumani V - avatar
1 Odpowiedź
0
The Date class features 2 methods you can work with. myDate.After(todaysDate) returns true if myDate is after todaysDate. myDate.Before(todaysDate) works the same way but in the opposite direction
4th Mar 2018, 9:52 AM
Kai Schlegel
Kai Schlegel - avatar