How can I calculate date-number of days?
Example:
Dim FirstDate as Date
Dim SecondDate as Date
FirstDate="01.1 2.2006"
SecondDate=Firs tDate+2 '1 is number of days and I must get "03.12.2006 "
or
SecondDate=Firs tDate-5 ' and I will get "26.11.2006 "
But it's not work! How can I calculate with dates in VB 2005?
Example:
Dim FirstDate as Date
Dim SecondDate as Date
FirstDate="01.1 2.2006"
SecondDate=Firs tDate+2 '1 is number of days and I must get "03.12.2006 "
or
SecondDate=Firs tDate-5 ' and I will get "26.11.2006 "
But it's not work! How can I calculate with dates in VB 2005?
Comment