pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliveiros d'Azevedo Cristina <oliveiros.cristina@marktest.pt>
To: Kenneth Marshall <ktm@rice.edu>
To: Emi Lu <emilu@encs.concordia.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: Get days between two dates?
Date: Mon, 31 Jan 2011 16:51:05 -0000
Message-ID: <26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt> (raw)
References: <4D46DA53.9050402@encs.concordia.ca>
	<20110131163927.GF24931@aart.is.rice.edu>

That's precisely what I think..
:-|


----- Original Message ----- 
From: "Kenneth Marshall" <ktm@rice.edu>
To: "Emi Lu" <emilu@encs.concordia.ca>
Cc: <pgsql-sql@postgresql.org>
Sent: Monday, January 31, 2011 4:39 PM
Subject: Re: [SQL] Get days between two dates?


> On Mon, Jan 31, 2011 at 10:50:43AM -0500, Emi Lu wrote:
>> Good morning,
>>
>> Is there an existing method to get days between two dates?
>>
>> For example,
>>
>> select '2010-01-01'::date - '1999-10-12'::date
>>
>> Returns how many days.
>>
>> Thank you,
>>
>> --
>> Lu Ying
>>
> 
> Didn't you just answer your own question?
> 
> Cheers,
> Ken
> 
> -- 
> Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-sql



view thread (6+ messages)

Message-ID: <26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt>
Permalink:  ../26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt/
Also on:    postgresql.org/message-id/26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt

 · 

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: oliveiros.cristina@marktest.pt, ktm@rice.edu, emilu@encs.concordia.ca
  Subject: Re: Get days between two dates?
  In-Reply-To: <26847BFD4C364A2B83F0EF622CB58B46@marktestcr.marktest.pt>

* 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