I'm struggling with the logic to determine if a date is within 30 days of another date. What makes this tricky is that the dates are represented by integers. So if I have:
int year = 1990; int month = 1; int day = 1;
How can I correctly return true if I compare this with:
int year = 1989; int month = 12; int day = 31
currently I'm using DateTime.DaysInMonth(year, month) but not sure how to apply that in a comparison.