hi all,
i am writing a program for an institute where students pay their fees monthly on different dates for the courses they're registered. for example, if i pay the first fee on 24th of february, my next fee dues on 24th of march, and if you pay your first fee on 05th of december, your next fee dues on 05th of january.
the issue is i need to figure out when the fee is due for a student. my brain is completely choked on this. .net provides a function by which i could figure out the number of days through a time span between two dates, i.e.
dim timeSpan1, timeSpan2 as timeSpan
dim resultTimeSpan as timeSpan
resultTimeSpan = timeSpan2.subtract(timeSpan1)
dim noOfDays as integer = resultTimeSpan.days
the above code is ok to figure out number of days, but i need to have a chunk of code that will tell me whether a month is passed by since the last payment, and if it has, i will flag the student as defaulter.
for some of you, the problem may sound a piece of cake, dont call me a stupid cuz as i said for some reasons my brain is totally choked on that..
a bigg bigg thank in advance for the helper.
Ather Hashmi