How to compare and find dates in a database?
-
23-12-2019 - |
Question
My Android app contains a table consisting of birthdays of friends. How can I get the dates within a given range? How will I compare dates?
Solution
You can create Date object and use the before and after methods. For more, see How to compare dates in Java?
OTHER TIPS
You can compare dates using java.util.Date#compareTo
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow