ustedes son un Masters!!!
Gracias, su ayuda me ha ayudado mucho!!


ing. José Fermín Francisco Ferreras 
San Francisco de Macorís, Rep. Dom. 




> CC: [email protected]; [email protected]
> Subject: Re: [pgsql-es-ayuda] mensajes de funciones
> From: [email protected]
> To: [email protected]
> Date: Mon, 24 May 2010 23:23:38 -0400
> 
> 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]>
                                          
_________________________________________________________________

Responder a