Subject | RE: [firebird-support] Re: Date problem in Firebird |
---|---|
Author | Alan McDonald |
Post date | 2005-06-09T22:09:58Z |
> > > i have a problem in select query.hang on - I think h's actually storing the dates as preformatted strings -
> > > When i issue the following select query
> > >
> > > "select DT_START,DT_END,DT_START || ' - ' || DT_END SHAM from
> > > year_setup"
> > >
> > > iam getting the following result
> > > dt_satrt=01.04.2005
> > > dt_end=31.03.2006
> > > SHAM=2005.04.01 - 2006.03.31
> > >
> > > (* Dates are stored in dd.mm.yyyy format in the year_setup table)
> > >
> > > But i want to get the third field in the same format as the first two.
> > > How can i do?
> >
> > I can not explain why the two interpretations of the same field are
> > different,
is this correct? i.e. they are not stored as data type DATE. So you will
need to cast them to date if you want to do date arithmetic.
Alan
>
> I can :-)
>
> dt_start and dt_end are transported to the client as "date", indeed,
> they are formatted by the client.
>