Re: storing repeating dates / events

From: "rkmr(dot)em(at)gmail(dot)com" <rkmr(dot)em(at)gmail(dot)com>
To: brian <brian(at)zijn-digital(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: storing repeating dates / events
Date: 2008-09-06 17:33:04
Message-ID: e04d2e90809061033u5f606390q57069b6fb91c1f92@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Sep 6, 2008 at 10:21 AM, brian <brian(at)zijn-digital(dot)com> wrote:

> rkmr(dot)em(at)gmail(dot)com wrote:
>
>> Hi
>> I want to store dates / events for example birthdays (or may 5th) that
>> repeats every year..
>> what is the best way to do in postgres?
>> if i use timestamp it is going to be use the current year.. how do i do
>> this?
>>
> A timestamp includes the year so there shouldn't be any problem. Although,
> i can't say i'm sure what you think might be the problem. Perhaps you should
> clarify what it is you want to store, as well as your concerns.

if it includes the year, how do i query out and find birthdays for this
this year? like if i had a table with column

user text,
dob timestamp without timezone,

can you tell me what the query will be to find todays birthday?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message rkmr.em@gmail.com 2008-09-06 17:34:22 Re: storing repeating dates / events
Previous Message Jorge Godoy 2008-09-06 17:32:41 Re: storing repeating dates / events