pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George A.J <jinujosein@yahoo.com>
To: Yasir Malik <ymalik@heineken.cs.stevens-tech.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: DateDiff in PostgreSQL
Date: Fri, 7 Nov 2003 05:53:35 -0800 (PST)
Message-ID: <20031107135335.29716.qmail@web14909.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0311070839130.20653@heineken.cs.stevens-tech.edu>



Yasir Malik <ymalik@heineken.cs.stevens-tech.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

view thread (6+ messages)  latest in thread

Message-ID: <20031107135335.29716.qmail@web14909.mail.yahoo.com>
Permalink:  ../20031107135335.29716.qmail@web14909.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031107135335.29716.qmail@web14909.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jinujosein@yahoo.com, ymalik@heineken.cs.stevens-tech.edu
  Subject: Re: DateDiff in PostgreSQL
  In-Reply-To: <20031107135335.29716.qmail@web14909.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox