that will be a problem.
Thank you!
-George
On Sat, May 19, 2018 at 1:52 PM, Tobias Boege <tabo...@gmail.com> wrote:
> On Sat, 19 May 2018, George wrote:
> > > CDate uses UTC and, without the time information in the string, it
> would
> > store midnight. Format uses local time.
>
I noticed a post from Benoît in another thread that this mailing list has
been deprecated, so I'm going to repost this in u...@lists.gambas-basic.org
On Sat, May 19, 2018 at 1:20 PM, George <gam...@geodosch.com> wrote:
> > CDate uses UTC and, without the time information i
> CDate uses UTC and, without the time information in the string, it would
store midnight. Format uses local time.
That is definitely part of the issue. My local time is GMT-04, and here's
what I get when specifying the time in my test:
Test date: 5/4/2018 03:59:00 Formatted: 05/03/18 Thu
Test
ult: 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 exampl
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: " &
wanted to report the bug. I'm
running version 2.22
-George
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
quick replies.
-George
--
This SF Dev2Dev email is sponsored by:
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo
other projects,
and am just revisiting this...
I am currently running version 2.22.0 and am still getting the error
described above. If the bug had been fixed in an earlier version, it
seems to have crept back in.
My Ubuntu version is currently 10.04 LTS (Lucid Lynx)
Thanks,
-George
2010/12/4 Benoît Minisini gam...@users.sourceforge.net:
Gambas 2.19/64 Suse11.3 locale Hong Kong:
PRINT DateAdd(CDate(2/13/2010), gb.month, -36)
PRINT DateAdd(CDate(3/28/2010), gb.month, -37)
PRINT DateAdd(CDate(4/13/2010), gb.month, -38)
produces
13/02/07
28/02/07
13/02/07
Benoît,
Thanks for the quick response. I had thought my Gambas was
up-to-date, but apparently the repository I was using is not current.
At least I'm aware of that now.
Thank you,
-George
2010/2/13 Benoît Minisini gam...@users.sourceforge.net:
The bug has been fixed in revision #2697
10 matches
Mail list logo