[Gambas-user] A little bit of Date Testing
David Silverwood
the_watchmann at yahoo.com
Wed Jun 5 19:34:32 CEST 2019
> Yes. You should never use Date() with a string, if you don't know what you are doing exactly (because your string is assumed to be an UTC date).
At last I know what I was doing wrong! Sorry, sometimes it takes a while. Ain't that young anymore...
On Wednesday, June 5, 2019, 6:59:08 PM GMT+2, Cedron Dawg <cedron at exede.net> wrote:
It won't happen again. Thanks for the clarification.
----- Original Message -----
From: "Benoît Minisini" <g4mba5 at gmail.com>
>
> Would you rather see the "CDate()" explicitly in code?
>
Yes. You should never use Date() with a string, if you don't know what
you are doing exactly (because your string is assumed to be an UTC date).
But it's my fault anyway. I should have only allowed the Date datatype
in the one-argument case.
--
Benoît Minisini
----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
----[ 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/20190605/eee05207/attachment-0001.html>
More information about the User
mailing list