Date difference

  • Thread starter Thread starter Zile
  • Start date Start date
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?
 
Back
Top