[Gambas-user] Beware to revision #7983!

Benoît Minisini gambas at ...1...
Tue Dec 20 01:53:32 CET 2016


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.lahtinen at ...626...>
> 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




More information about the User mailing list