Re: using between with dates - Mailing list pgsql-general

From Adrian Klaver
Subject Re: using between with dates
Date
Msg-id 201004290711.00868.adrian.klaver@gmail.com
Whole thread Raw
In response to using between with dates  (Geoffrey <lists@serioustechnology.com>)
List pgsql-general
On Thursday 29 April 2010 6:58:26 am Geoffrey wrote:
> I'm trying the following:
>
> ship_date between '04/30/2010' AND '04/30/2010' + 14
>
> But this returns:
>
> ERROR:  invalid input syntax for integer: "04/30/2010"
>
> Can I use between with dates?
>
> --
> Until later, Geoffrey
>
> "I predict future happiness for America if they can prevent
> the government from wasting the labors of the people under
> the pretense of taking care of them."
> - Thomas Jefferson

ship_date between '04/30/2010' AND '04/30/2010'::date + 14

--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: Geoffrey
Date:
Subject: Re: using between with dates
Next
From: Tom Lane
Date:
Subject: Re: using between with dates