Le 29/02/2012 00:08, Caveat a écrit :
> Yeah, strange... you can add 12 months (temporary workaround?) but
> adding a year results in an invalid date error...
>
>    Print DateAdd(Now, gb.Month, 12)   'OK
>    Print DateAdd(Now, gb.Year, 1)     ' Gives invalid date
>
> Kind regards,
> Caveat
>

Because adding months automatically round the day down if it exceeds the 
number of days in the month. But not adding year (and so you get 
29/2/2013, an invalid date).

I will fix that.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to