Skip site navigation (1) Skip section navigation (2)

Re: Date formatting function

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Date formatting function
Date: 2011-06-17 17:27:08
Message-ID: 20110617172708.GA21979@tux (view raw or flat)
Thread:
Lists: pgsql-novice
JORGE MALDONADO <jorgemal1960(at)gmail(dot)com> wrote:

> I am using the following formatting function for a date field and I get the
> name of the month in English language. How can I get it in Spanish?
>  
> to_char(sea_fecha,'MONTH DD, YYYY') as sea_fecha_aux

I think, you have to use the 'translation mode prefix', see 
http://www.postgresql.org/docs/8.4/interactive/functions-formatting.html
Table 9-22. Template Pattern Modifiers for Date/Time Formatting



Andreas
-- 
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."   (unknown)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

In response to

pgsql-novice by date

Next:From: James David SmithDate: 2011-06-17 19:12:49
Subject: Re: Extract from date field
Previous:From: JORGE MALDONADODate: 2011-06-17 17:17:53
Subject: Date formatting function

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group