Le 21/01/2017 à 19:22, Gianluigi a écrit : > Hi Charlie, > > I thank for the answer and will do so too. > But my poor mind cannot comprehend the question of time zone. > > Regards > Gianluigi > >
If you convert a string to a date, then the string is assumed to be an UTC time, *not* a local time. To convert a local time as a string to a date, you must use the Val() function. Or, as Karl said, you can use the Date() function if you have the date split into its different components. It's exactly the same with numbers! CStr() and CFloat() assume the american format (which is like "UTC" for numbers). Str() and Val() assume the local format. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user