Date difference

Z

Zile

How can I calculate date-number of days?
Example:

Dim FirstDate as Date
Dim SecondDate as Date

FirstDate="01.12.2006"
SecondDate=FirstDate+2 '1 is number of days and I must get "03.12.2006"

or

SecondDate=FirstDate-5 ' and I will get "26.11.2006"

But it's not work! How can I calculate with dates in VB 2005?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top