Subject | Re: [firebird-support] Date Calculation |
---|---|
Author | Magnus Titho |
Post date | 2005-05-10T15:48:08Z |
ra8009 wrote:
Magnus
> Where MYDATE is a timestamp field, I want to display the number ofNumber of days IS an integer - what did you expect?
> days since a given date:
>
> SELECT CAST(CAST('TODAY' as DATE)-CAST(MYDATE as DATE) FROM MYTABLE
>
> However, this gives me an integer. When I try to cast it as a DATE I
> get an error message:
Magnus