[Gambas-user] BUG: Problem with DateAdd function

Benoît Minisini gambas at ...1...
Sat Dec 4 18:27:25 CET 2010


> > 
> > Gambas 2.19/64 Suse11.3 locale Hong Kong:
> > 
> > PRINT DateAdd(CDate("2/13/2010"), gb.month, -36)
> > PRINT DateAdd(CDate("3/28/2010"), gb.month, -37)
> > PRINT DateAdd(CDate("4/13/2010"), gb.month, -38)
> > produces
> > 13/02/07
> > 28/02/07
> > 13/02/07
> > 
> > whereas
> > PRINT DateAdd(CDate("1/13/2010"), gb.month, -36)
> > PRINT DateAdd(CDate("2/28/2010"), gb.month, -37)
> > PRINT DateAdd(CDate("3/13/2010"), gb.month, -38)
> > all produce an invalid date error.
> > 
> > Regards
> > Werner
> 
> Forgot to mention it works in Gambas3 version 3293.
> 

All that is normal, as the bug has been fixed in 2.20!

Regards,

-- 
Benoît Minisini




More information about the User mailing list