[Gambas-user] Best way converting dates into strings forth and back
Rolf-Werner Eilert
rwe-sse at osnanet.de
Fri Dec 10 12:02:42 CET 2021
Am 10.12.21 um 10:46 schrieb Benoît Minisini:
> Le 10/12/2021 à 10:38, Rolf-Werner Eilert a écrit :
>> Currently I think about recoding one of my projects. Here it might be
>> good to store dates internally as Date.
>>
>> But for saving the information (and some information on top of it), I
>> would have to convert these dates into some kind of string, and back
>> into Date when loading the file(s).
>>
>> So my question is, which way is the easiest and fastest to achieve
>> this? CStr() and CDate()?
>>
>
> You must use CStr() and CDate(), so that you store and retrieve dates as
> a string in UTC format.
>
> Regards,
>
Thank you Benoit, then I can be sure.
Regards
Rolf
More information about the User
mailing list