It also works with Gambas 3.11.2

'' Main.Main.9: Test date: 5/4/2018 00:00:00 Formatted: 05/04/18 ven

Regards
Gianluigi


2018-05-19 15:36 GMT+02:00 George <gam...@geodosch.com>:

> Sorry, I should have added that I'm on version 3.11.2
>
> On Sat, May 19, 2018 at 9:27 AM, George <gam...@geodosch.com> wrote:
>
> > I'm using the repository 'http://ppa.launchpad.net/
> > gambas-team/gambas3/ubuntu'
> >
> > Is there something that's more up-to-date?
> >
> > On Sat, May 19, 2018 at 9:08 AM, Gianluigi <bagone...@gmail.com> wrote:
> >
> >> I think it depends on your version of Gambas, I get the correct result
> >> with
> >> the master:
> >>
> >>   Dim zTestDate As String
> >>   Dim zTestResult As String
> >>   zTestDate = "5/4/2018"
> >>   zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd")
> >>   Debug "Test date: " & zTestDate & " Formatted: " & zTestResult
> >>   '' Result: Main.Main.9: Test date: 5/4/2018 Formatted: 05/04/18 ven
> >>
> >> Regards
> >> Gianluigi
> >>
> >> 2018-05-19 14:54 GMT+02:00 George <gam...@geodosch.com>:
> >>
> >> > When using the Format function to format a date, the date gets offset
> >> by 1
> >> > day.  Here's an example:
> >> >
> >> >   Dim zTestDate As String
> >> >   Dim zTestResult As String
> >> >   zTestDate = "5/4/2018"
> >> >   zTestResult = Format(CDate(zTestDate), "mm/dd/yy ddd")
> >> >   Debug "Test date: " & zTestDate & " Formatted: " & zTestResult
> >> >
> >> > Result: Test date: 5/4/2018 Formatted: 05/03/18 Thu
> >> >
> >> > This seems to have started since the last update was applied.
> >> > ------------------------------------------------------------
> >> > ------------------
> >> > 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@lists.sourceforge.net
> >> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >> >
> >> ------------------------------------------------------------
> >> ------------------
> >> 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@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> >
> ------------------------------------------------------------
> ------------------
> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to