[Gambas-user] CDate Documentation

Claus Dietrich claus.dietrich at freenet.de
Sun Nov 13 17:28:20 CET 2022


>This could be fixed as suggested several times; assume the user is always
>correct. IE no conversions.
>So you would simply get what you give, instead of something unexpected:
>
>Print CDate("11/11/2022 13:00:00")     -> 11.11.2022 13:00:00
>Print CDate("08/11/2022 13:00:00")     -> 08.11.2022 13:00:00
>
>But I think it would need its own class or set of methods to maintain the
>old way people are using.

I also think, that that no conversion to UTC would have been better. The
function Date() also doesn't do this and in VBA and Visual Basic 6 CDate
also doesn't convert to UTC.

So far and because of the traps I used this function with a time component
only, which is not converted to UTC. So to me a hard cut would be
acceptable but this is easily said.

Brgds
Claus








More information about the User mailing list