Benoit is it possible add this timezone conversion suggestion to CDate()? Date = CDate ( Expression AS Variant [, InputTimeZone AS Integer, OutputTimeZone AS Integer ] ) AS Date
This way you could tell CDate what is the timezone you are using and in what timezone you need the answer. I think it would decrease the confusion and add new functionality. What do you think? Jussi On Tue, Dec 20, 2016 at 2:53 AM, Benoît Minisini < gam...@users.sourceforge.net> wrote: > Le 20/12/2016 à 01:23, Jussi Lahtinen a écrit : > > Or additional requirement for the string, examples "10/01/2016 GMT" or > > "10/01/2016 Local". > > > > > > Jussi > > > > On Tue, Dec 20, 2016 at 2:16 AM, Jussi Lahtinen < > jussi.lahti...@gmail.com> > > wrote: > > > >> That is bit confusing. Would it be better if Date() function would > accept > >> one more argument "TimeZone". > >> Example: > >> > >> Date("10/01/2016", gb.GMT) > >> > >> or > >> > >> Date("10/01/2016", gb.Local) > >> > >> > >> What you think? > >> > >> > >> Jussi > >> > > I think that you misuse the Date() function too. > > Date() is not a string to date conversion function. > > You must use: > > - CDate() for an UTC date conversion. > > - Val() for a local time conversion. > > Regards, > > -- > Benoît Minisini > > ------------------------------------------------------------ > ------------------ > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today.http://sdm.link/intel > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user