| From: | Juan Martínez <jeugenio(at)umcervantes(dot)cl> |
|---|---|
| To: | Eliana Gutierrez <egp1962(at)yahoo(dot)com(dot)au> |
| Cc: | ayuda postgres <pgsql-es-ayuda(at)postgresql(dot)org> |
| Subject: | Re: Convert date a formato ddmmyyyy |
| Date: | 2007-04-10 01:42:07 |
| Message-ID: | 461AEB6F.9000607@umcervantes.cl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Eliana Gutierrez escribió:
> Holas listeros, tengo una columna en mi tabla de tipo date y para una
> consulta lo necesito rescatar en formato ddmmyyyy. no he encontrado el
> cast apropiado, alguien sabe como???
Por favor! si la documentación no muerde.
http://www.postgresql.org/docs/current/static/functions-formatting.html
De muestra, un boton:
jeugenio=> SELECT to_char(now(),'DDMMYYYY');
to_char
----------
09042007
(1 fila)
jeugenio=> SELECT to_char('2007-02-28'::date,'DDMMYYYY');
to_char
----------
28022007
(1 fila)
--
Juan Martinez G. Mac Iver # 370
Departamento de Informatica 4997900 - 4997950
Universidad Miguel de Cervantes Santiago - Chile
http://download.bblug.usla.org.ar/netiquette.png
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Eliana Gutierrez | 2007-04-10 01:58:52 | crear una columna desde un select |
| Previous Message | Marco Castillo | 2007-04-10 01:35:51 | Re: Se puede???????????? |