Incrementing dates

I'm just trying to create a loop that will increment a date by a day each time:

TestDate = "3/27/2005"
For x = 1 To 7
    Debug.Print TestDate + Day(x)
Next x

Seems pretty simple... Here's the results:

4/27/2005
3/28/2005
3/29/2005
3/30/2005
3/31/2005
4/1/2005
4/2/2005

See the first date?  What's up with that?  Why would +day(1) increment the MONTH?  Why does the month then decrease by one?  I don't get this...

So I try this:

TestDate = "3/27/2005"
For x = 1 To 7
    TestDate = TestDate + Day(x)
    Debug.Print TestDate
Next x

Results:

4/27/2005
4/28/2005
4/30/2005
5/3/2005
5/7/2005
5/12/2005
5/18/2005

???

Why does this make no sense whatsoever?
Thanks!
MIKEVAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MIKEVAuthor Commented:
Oh, I can see my error in the second example above, it's adding 1 days, then 2 days, etc.  This is better:

TestDate = "3/27/2005"
For x = 1 To 7
    TestDate = TestDate + Day(1)
    Debug.Print TestDate
Next x

4/27/2005
5/28/2005
6/28/2005
7/29/2005
8/29/2005
9/29/2005
10/30/2005

Now it's inreasing the month?
0
Ryan ChongCommented:
try:

TestDate = CDate("3/27/2005")
    For x = 1 To 7
        TestDate = TestDate + 1
        Debug.Print TestDate
    Next x
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ryan ChongCommented:
or this if you using DateSerial, DateAdd functions:

TestDate = DateSerial(2005, 3, 27)
    For x = 1 To 7
        TestDate = DateAdd("d", 1, TestDate)
        Debug.Print TestDate
    Next x
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.