"Mihai Gheorghiu" <tanethq(at)earthlink(dot)net> writes:
> Is there a function that returns the number of days between two dates?
Subtraction.
regression=# select '27 Feb 2001'::date - '5 Jan 2001'::date;
?column?
----------
53
(1 row)
regards, tom lane