-3

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?

CL.
  • 173,858
  • 17
  • 217
  • 259

2 Answers2

0

You can compare dates using java.util.Date#compareTo.

The Guy with The Hat
  • 10,836
  • 8
  • 57
  • 75
srodrigo
  • 3
  • 1
0

You can create Date object and use the before and after methods. For more, see How to compare dates in Java?

Community
  • 1
  • 1
betteroutthanin
  • 7,148
  • 8
  • 29
  • 48