"IS LATER THAN" filter for date column

Started by gvimalmost 15 years ago3 messagesgeneral
Jump to latest
#1gvim
gvimrc@gmail.com

I've been looking through the Date/Time functions and operators on the docs and can't find anything obvious to do this simple task - filter a date column for entries which are later than a specified date.

gvim

#2Chris Ernst
cernst@zvelo.com
In reply to: gvim (#1)
Re: "IS LATER THAN" filter for date column

On 05/01/2011 07:37 PM, gvim wrote:

I've been looking through the Date/Time functions and operators on the
docs and can't find anything obvious to do this simple task - filter a
date column for entries which are later than a specified date.

gvim

Try "WHERE date > '2011-04-01'" replacing the date with whatever is
appropriate for your application, of course.

- Chris

#3Scott Marlowe
scott.marlowe@gmail.com
In reply to: gvim (#1)
Re: "IS LATER THAN" filter for date column

On Sun, May 1, 2011 at 7:37 PM, gvim <gvimrc@gmail.com> wrote:

I've been looking through the Date/Time functions and operators on the docs
and can't find anything obvious to do this simple task - filter a date
column for entries which are later than a specified date.

select * from table where datecol > '2001-01-01'::date;