[Gambas-user] [Gambas Bug Tracker] Bug #704: Format does not handle time separator correctly

Charlie Reinl Karl.Reinl at ...2345...
Sat Aug 29 11:08:16 CEST 2015


Am Samstag, den 29.08.2015, 04:22 +0300 schrieb Jussi Lahtinen:
> > correct me if I go wrong, I still don't see for what we need the
> > localization.
> > Having a Date or Date/Time and we want to format it, where we need
> > localisation there for.
> >
> > Using german date is Format(now(),"dd.mm.yyyy") but I also can write
> > Format(now(),"mm/dd/yyyy") or Format(now(),"dd-mm-yyyy") but also
> > Format(now(),"dd;mm;yyyy") yes that should work (it's a ';' not a ':')
> > Please enlighten me, I can't see the usage of localization in that
> > converting.
> >
> 
> How I supposed to verify output of Format(now(),"mm/dd/yyyy") ?
> Correct result can be 08.29.2015 or 08/29/2015 depending on the
> localization (or even something completely different).
> 
> 
> Jussi

Salut Jussi,

attached you a quick hack who shows that the Format don't
use the localization.
 
-- 
Amicalement
Charlie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DateTimeChk-0.0.1.tar.gz
Type: application/x-compressed-tar
Size: 4305 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20150829/e3f87f13/attachment.bin>


More information about the User mailing list