query involving dates

From: "Alvin" <twong(at)cmpmail(dot)com>
To: pgsql-questions(at)postgresql(dot)org
Subject: query involving dates
Date: 1999-09-05 18:21:22
Message-ID: 37d2b413.0@feed1.realtime.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I need to query some records based on fields of type date, however, it
seems that every dbms' date format is different. In access, you use
#1/1/99#. In oracle, you need to use Jan-1-99. Is there a standard format
for dealing with dates?

I have a set of records with a column called "myDate".
I'm looking for a query that tells the DB to return all records with
"myDate" within 7 days from today. How can I do that? Thank you very much.
Please reply to twong(at)cmpmail(dot)com(dot)

-Al

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bob Pfeiff 1999-09-06 00:27:04 Re: query involving dates
Previous Message Damond Walker 1999-09-05 14:44:48 6.5.1 on RH 6.0/Sparc