Subject | Re: [firebird-support] Re: Number of months between dates |
---|---|
Author | Martijn Tonies |
Post date | 2004-05-12T12:22:12Z |
> > What is the way in FB to get number of months between two dates?What if month from "date1" is "11" and month from "date2"
>
> extract(month from date2) - extract(month from date1)
>
> correct me if I'm wrong.
is "4" ...
4 - 11 = -7??
While the difference actually is 5 months...
With regards,
Martijn Tonies
Database Workbench - developer tool for InterBase, Firebird, MySQL & MS SQL
Server.
Upscene Productions
http://www.upscene.com