[Gambas-user] DateAdd function
VBTricks.de.vu Webmaster
vbtricks at ...451...
Sun Aug 15 09:26:07 CEST 2004
Hi Benoit,
I read your comment. As I do not have the MSDN available under Linux, I
tried adding years using "y" as intervall. With "yyyy" it works. But
when trying to add months to a date, the function fails.
My source:
Dim NextDate As Date
NextDate = CDate("10/03/03") ' October 3rd, 2003
NextDate = vb.DateAdd("m", 2, NextDate)
'should return December 3rd, 2003
Error displayed: "Invalid Date Returned"
But this date does exist!
So where's the fault?
--
___________________________________www.VBTricks.de.vu
the free resource for Visual Basic, Gambas and Pascal
components, tips & complete projects
www: http://www.VBTricks.de.vu
mail: vbtricks <at> my-mail <dot> ch
_____________________________________________________
More information about the User
mailing list