[Gambas-user] DateChooser.Value = one day less
Benoît Minisini
g4mba5 at gmail.com
Thu Feb 18 12:11:34 CET 2021
Le 18/02/2021 à 12:07, Rolf-Werner Eilert a écrit :
>>
>> What do you mean by: "the result is '09/02/2021 23:00:00'"?
>>
>
> What I meant is "the string shown in the message.info"
>
> Public Sub DateChooser_Click()
>
> Message.Info(DateChooser.Value)
Message.Info() expects a string. By giving him a date, you trigger the
automatic date to string conversion, which is *not* locale-aware. So
what you see is the GMT date.
See http://gambaswiki.org/wiki/doc/date
Regards,
--
Benoît Minisini
More information about the User
mailing list