-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.
  • 165,803
  • 15
  • 203
  • 239

2 Answers2

0

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

The Guy with The Hat
  • 10,290
  • 8
  • 59
  • 73
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
  • 6,578
  • 8
  • 27
  • 47