Excerpts from Julio Cesar Rodriguez Dominguez's message of lun may 24 18:52:46 
-0400 2010:

> select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
> 
> Funciona con to_char como dijo Alvaro, pero si lo quieres en español debes
> tener configurados tus locales (lc_time) bien en postgresql.conf.

O cambiarlo con SET ...

alvherre=# set lc_time to 'C';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
        to_char         
────────────────────────
 Monday 24 de May, 2010
(1 fila)

alvherre=# set lc_time to 'es_CL';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
        to_char         
────────────────────────
 Lunes 24 de Mayo, 2010
(1 fila)

alvherre=# set lc_time to 'fr_CA';
SET
alvherre=# select to_char(now( ), 'TMDay TMDD "de" TMMonth, YYYY');
        to_char        
───────────────────────
 Lundi 24 de Mai, 2010
(1 fila)


-- 
Álvaro Herrera <[email protected]>
-
Enviado a la lista de correo pgsql-es-ayuda ([email protected])
Para cambiar tu suscripci�n:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

Responder a