[Gambas-user] Best way converting dates into strings forth and back

Benoît Minisini g4mba5 at gmail.com
Fri Dec 10 10:46:05 CET 2021


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,

-- 
Benoît Minisini


More information about the User mailing list