SiouxCityElvis
Programmer
I am trying to get the following For Loop to return the last day of each month starting with the last day in February. But when I start with a date of 02/28/2006 or 02/29/2008 the rest of the months end up with '28' as their day value. I need it to be the last day of the month for each month.
[
For I = 0 to UBound(varB)
ArrayA(I).dtBillDate = Date2Num(DateAdd("m", I * globStruct.iFrqCnt, Num2Date(globStuct.dtBDate)))
Next
]
Its been a while since I posted a thread - hope I put the code snippet in correctly - can't remember the special chars to surround the code snippet with.
Thanks.
[
For I = 0 to UBound(varB)
ArrayA(I).dtBillDate = Date2Num(DateAdd("m", I * globStruct.iFrqCnt, Num2Date(globStuct.dtBDate)))
Next
]
Its been a while since I posted a thread - hope I put the code snippet in correctly - can't remember the special chars to surround the code snippet with.
Thanks.