[Gambas-user] With Date one day less

Gianluigi bagonergi at ...626...
Sat Jan 21 19:22:46 CET 2017


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 <karl.reinl at ...9...>:

> 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 yyyy") ' > 14 06 2008
> >
> > End
> > '----------------------------------
> > Because UTC (an hour more) becomes one less day?
> > (sig!)
> >
> > Regards
> > Gianluigi
>
> Salut Gianluigi,
>
> like that you get what you want.
>
> Public Sub Button1_Click()
> Dim d1 As Date
>
>   d1 = Date(2008, 6, 15)
>   Print Format$(d1, "dd mm yyyy") ' > 15 06 2008
>
> End
>
>
> --
> Amicalement
> Charlie
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list