Subject | Re: [firebird-support] How to calcuate the days between 2 DATE fields |
---|---|
Author | Ann W. Harrison |
Post date | 2006-02-02T22:19:32Z |
william_yuwei wrote:
as a date - either use CURRENT_DATE or cast 'Today' as a date.
Regards,
Ann
> Hi,'Today' is just a string that has a particular meaning when interpreted
>
> How to calcuate the days between two DATE fields? I tried to using
> the following statement in one of my stored procedure, but it failed
> to compile it:
>
> Days = :INVOICE_DATE - 'TODAY'
>
as a date - either use CURRENT_DATE or cast 'Today' as a date.
Regards,
Ann