Hi Benoit,
You are always very kind, your explanation has allowed me to understand.
The string data is assumed at 00:00:00 and therefore one hour back from the
day before.
If I had written
'-
Public Sub Main()
Dim d1 As Date
d1 = "6/15/2008 01:00:00"
Print F
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.
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
2017-01-21 17:51 GMT+01:00 Karl Reinl :
> Am Samstag, den 21.01.2017, 17:22 +0100 schrieb Gianluigi:
> > I, with Date, become crazy.
> > Just look here:
> > '-
Am Samstag, den 21.01.2017, 17:22 +0100 schrieb Gianluigi:
> I, with Date, become crazy.
> Just look here:
> '-
> Public Sub Main()
>
> Dim d1 As Date
>
> d1 = "6/15/2008"
> Print Format$(d1, "dd mm ") ' > 14 06 2008
>
> End
> '--