Order by birthdate

Tim J Trowbridge <trowbrid@writeme.com>

From: Tim J Trowbridge <trowbrid@writeme.com>
To: pgsql-sql@postgresql.org
Date: 1998-06-11T02:39:44Z
Lists: pgsql-sql
I'm trying to generate a birthday list ordered by month, then by day. 
This is what I thought would work...

SELECT name,birthdate FROM table WHERE birthdate is not null ORDER BY
date_part('month',birthdate)

but psql returns:

ERROR:  parser: parse error at or near "("

What's the problem?

--
Tim J Trowbridge                         trowbrid@writeme.com
Interested in my genealogy?          http://www.execpc.com/~trowbrid