|
-
Mar 31st, 2006, 09:05 AM
#1
Thread Starter
Hyperactive Member
SOLVED: Adding day(s) to a date : S
I saw some posts about it and tried to duplicate, but it is not working.
Here is my code:
Code:
dteDays(ii) = dtpDate1.Value
dteDays(ii).AddDays(i)
ii = ii + 1
dteDays is an array of dates, starting with dtpDate1
The value of dtpDate1 is 3/31/06
The code above is in a For/Next loop.
i is 0 through some number, we'll say 3 for this example.
No matter what the value of i is, all of the dates in the array, dteDays, are equal to 3/31/06.
what am i doing wrong?
Thanks in advance!!!
Last edited by Hack; Mar 31st, 2006 at 09:32 AM.
Reason: Added green resolved checkmark
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|