Subject | Re: [firebird-support] Re: Date Extraction |
---|---|
Author | Helen Borrie |
Post date | 2006-05-09T03:00:24Z |
At 02:54 AM 9/05/2006, John Craig wrote:
functions that return English strings from date types. Appendix 1 of
the book is a summary of all the UDF syntaxes.
./hb
>--- Helen Borrie wrote:Yes. There's an entire chapter on stuff you can do with date and time types.
> >
> > EXTRACT (MONTH FROM mydate)
> > or DAY, YEAR..
> > The parts you can extract are
> > YEAR | YEARDAY| MONTH | DAY | WEEKDAY (from a DATE type)
> > and HOUR | MINUTE | SECOND (from a TIME type). You can extract any
> > of them from a TIMESTAMP type.
>
>Two follow-on questions:
>1. Are these functions (and similar ones I didn't know about ;-)
>documented in your book (The Firebird Book) that's available from the
>ibphoenix site?
>2. Is there a slick way to get a textual representation of the monthOnly with a UDF, e.g. DOW in FBUDF. FreeUDFLib also has some
>and weekday (e.g. 'January' rather than 1)?
functions that return English strings from date types. Appendix 1 of
the book is a summary of all the UDF syntaxes.
./hb