[Gambas-user] Format function changes date value

Gianluigi bagonergi at gmail.com
Thu Jun 7 16:51:28 CEST 2018


I wrote it even if I imagined it was wrong (it works here), I'm sorry.
It's useless, with the dates I still do not understand anything.
These coming days, I will try to write a my wiki to and submit it to your
judgment.

Regards
Gianluigi


2018-06-07 16:35 GMT+02:00 Benoît Minisini <g4mba5 at gmail.com>:

> Le 07/06/2018 à 16:26, Gianluigi a écrit :
>
>>
>> I believe that coercion should always be avoided.
>> You have passed a string to a date type:
>>     Dim Dat1 As Date
>>     Dat1 = "6/1/2018"
>> By writing Dat1 = CDate ("6/1/2018") the error would have been avoided.
>>
>> Regards
>> Gianluigi
>>
>>
> Of course not, as Dat1 = "6/1/2018" and Dat1 = CDate("6/1/2018") do
> exactly the same thing.
>
> --
> Benoît Minisini
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180607/00589816/attachment.html>


More information about the User mailing list