pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feeddate_part
2+ messages / 2 participants
[nested] [flat]
* date_part
@ 2002-06-18 23:19 Rudi Starcevic <rudi@oasis.net.au>
2002-06-19 00:47 ` Re: date_part Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 2+ messages in thread
From: Rudi Starcevic @ 2002-06-18 23:19 UTC (permalink / raw)
To: pgsql-sql
Hi,
When using the date_part function is it possible to get the month name
and not the month number ?
I'm using something like 'date_part('month', birth_date)' - birth_date
being a date data type.
Currently I'm getting numbers from 1 to 12 whereas I'd like the full
name like 'June' or 'July' etc.
Thanks
Rudi.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: date_part
2002-06-18 23:19 date_part Rudi Starcevic <rudi@oasis.net.au>
@ 2002-06-19 00:47 ` Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 2+ messages in thread
From: Josh Berkus @ 2002-06-19 00:47 UTC (permalink / raw)
To: pgsql-sql; pgsql-hackers@postgresql.org
Rudi,
select to_char(date_column, 'Month');
See similar under "Formatting Function" in the docs.
--
-Josh Berkus
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2002-06-19 00:47 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-06-18 23:19 date_part Rudi Starcevic <rudi@oasis.net.au>
2002-06-19 00:47 ` Josh Berkus <josh@agliodbs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox