Re: a new question

From: Todd Lewis <lewis-todd(at)sbcglobal(dot)net>
To: enzovenegas(at)mixmail(dot)com
Cc: "pgsql-php(at)postgresql(dot)org" <pgsql-php(at)postgresql(dot)org>
Subject: Re: a new question
Date: 2005-03-18 03:48:42
Message-ID: 423A4F9A.6090509@sbcglobal.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

you can use to_char(timestamp,'mm-dd-yyy') where timestamp is your couln
name. You can place this in your select section.

enzo venegas palacios wrote:

>hi, my problem is very basic (and my english too)
>
>i have a variable with a date (timestamp format)
>$fecha = mm-dd-yyy hh:mm:ss
>
>i need to display only the date and not the hour
>
>$only_date = ??? ($fecha);
>
>echo $only_date;
>display = mm-dd-aaaa
>
>
>enzo
>---------------------------------------------------------
>Redecora tu móvil. Redecora tu vida. ¿Por qué no? Con http://logos.ya.com es posible
>ADSL + Llamadas 24 horas: desde 28,95 €/mes + IVA. Navega y habla de forma ilimitada. Sin compromiso de permanencia. http://acceso.ya.com/ADSLllamadas/
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 7: don't forget to increase your free space map settings
>
>
>

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Bastiaan Wakkie 2005-03-18 22:07:06 Re: a new question
Previous Message Michael Glaesemann 2005-03-18 02:14:35 Re: a new question