using between with dates

From: Geoffrey Myers <geof(at)serioustechnology(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: using between with dates
Date: 2010-04-29 13:55:46
Message-ID: 4BD98FE2.6040905@serioustechnology.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?

--
Geoffrey Myers
Myers Consulting Inc.
770.592.1651

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kenneth Marshall 2010-04-29 13:56:02 Re: [SQL] Tsearch not searching 'Y'
Previous Message Craig Ringer 2010-04-29 13:43:27 Re: FW: Java Memory Issue while Loading Postgres library