Subject | Re: [ib-support] days from January the 1st |
---|---|
Author | lester@lsces.co.uk |
Post date | 2002-03-02T10:45:19Z |
> inside a SP, I need to compute the number of days that have elapsed sinceDialect 3?
> January the 1st of the current year up to a given date (also of the current
> year).
>
> For now, I have been able to write
>
> gg=cast(:d_mov-'2002-01-01' as integer);
>
> but the bluff won't last long... :)
If so, CAST ( EXTRACT YEAR AS DATE ) for the '2002-01-01'
entry.
I havn't switched to 3 yet so I'm not sure of the details
<g>
If not 3, then you probably need a UDF to do the extract.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services