Android Question [SOLVED]Days between dates

Ricky D

Well-Known Member
Licensed User
Longtime User
I have created an app that I store birthdays of people I know.

The database contains dates that are before 1970 so I can't use the DateUtils or DateTime functions on them.

From the database I have the month and day of month in ints. And I have the day and month of the current date.

How can I check if the current date is within 1 week or 7 days of the dates in my db?

Remember I can't use DateTime or DateUtils

regards, Ricky
 

Ricky D

Well-Known Member
Licensed User
Longtime User
I solved it by replacing the year of the birthdate with the current year then use DateUtils to get the days between.
 
Upvote 0
Top