| From: | "George A(dot)J" <jinujosein(at)yahoo(dot)com> |
|---|---|
| To: | Yasir Malik <ymalik(at)heineken(dot)cs(dot)stevens-tech(dot)edu> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: DateDiff in PostgreSQL |
| Date: | 2003-11-07 13:53:35 |
| Message-ID: | 20031107135335.29716.qmail@web14909.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Yasir Malik <ymalik(at)heineken(dot)cs(dot)stevens-tech(dot)edu> wrote:
>You can use the age() function to find the difference between dates, and
>use the extract() function to get the years, months, days, etc.
>Yasir
this will not work because age('25/12/1975','30/01/1986')
wil return '10 year 1 month 5 days'
extract only returns years -10, moths-1, days-5.
this is not i want.Actual month difference between the dates are 121 months.
jinu jose
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rod Taylor | 2003-11-07 13:55:48 | Re: DateDiff in PostgreSQL |
| Previous Message | Christopher Browne | 2003-11-07 13:47:45 | Re: SQL to PLC to diverter gate, can this be done? |