[Gambas-user] Date formats

Paul Horechuk horechuk at ...981...
Mon May 19 15:43:26 CEST 2008


On May 18, 2008 04:27:07 pm Juan Jose Costello Levien wrote:
> Hello Paul,
>
> I suppose you are looking for CDate? (
> http://gambasdoc.org/help/lang/cdate?v3)

Unfortunately, CDate behaves the same as Date, in the previous examples.
CDate("05/15/08") --> 15/05/08
CDate("15/05/08") --> Type mismatch: wanted Date, got String instead

I would expect the passed format of mm/dd/yy to return mm/dd/yy and not 
dd/mm/yy. If not then there should be a control for the order.


>
>
> Juan
>
> On Sun, May 18, 2008 at 5:04 PM, Paul Horechuk <horechuk at ...981...> wrote:
> > Is there a way to set the way the Date command interprets a string
> > argument?
> > In other words: If I say
> > ? Date("05/15/08"), I get 15/05/08
> > If instead I say
> > ? Date("15/05/08", I get an error:
> > Type mismatch: wanted Date, got String instead.
> > This appears to be a little counter-intuitive.
> > I'm looking for a setting such as DATEFORMAT=DMY. Is there such a setting
> > for
> > GAMBAS?
> > I'm using Gambas3 on a Kubuntu/Feisty 64 bit.
> > $LANG is set to en_CA.UTF-8.
> > --
> > -- Paul Horechuk
> > Think Free
> > Use Open Source Software
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
-- Paul Horechuk
Think Free
Use Open Source Software




More information about the User mailing list