Re: [GENERAL] Number of days

2001-07-06 Thread Tom Lane
"Mihai Gheorghiu" <[EMAIL PROTECTED]> 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 ---

[GENERAL] Number of days

2001-07-06 Thread Mihai Gheorghiu
Is there a function that returns the number of days between two dates? I found only age, which calculates the difference between two timestamps, but the example shows the result as a timestamp. Thanks, Mihai Gheorghiu ---(end of broadcast)--- TIP 6