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?

Was it helpful?

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
scroll top