[Gambas-user] date syntax
Rob
sourceforge-raindog2 at ...94...
Fri Apr 9 18:16:50 CEST 2004
On Friday 09 April 2004 13:52, Jack wrote:
> the result is "2004,04,09"
> Now i want use the Date function for somes controls
> But i have a message "Invalid Date" .
> Yet, if i write PRINT DATE(2004,04,09) in a console, i have no
> error and the answer is 2004,04,09
Well, Date(2004,04,09) and Date("2004,04,09") are two very
different things. In the first case you're passing it three
numbers, in the second case one string.
I think you meant to use CDate() instead, though I don't know if
it'll understand "2004,04,09" either.
Rob
More information about the User
mailing list