pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Todd Lewis <lewis-todd@sbcglobal.net>
To: enzovenegas@mixmail.com
Cc: pgsql-php@postgresql.org <pgsql-php@postgresql.org>
Subject: Re: a new question
Date: Thu, 17 Mar 2005 19:48:42 -0800
Message-ID: <423A4F9A.6090509@sbcglobal.net> (raw)
In-Reply-To: <E1DC4WY-0001As-00@relay.mixmail.com>
References: <E1DC4WY-0001As-00@relay.mixmail.com>

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
>
>  
>




view thread (4+ messages)  latest in thread

Message-ID: <423A4F9A.6090509@sbcglobal.net>
Permalink:  ../423A4F9A.6090509@sbcglobal.net/
Also on:    postgresql.org/message-id/423A4F9A.6090509@sbcglobal.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: lewis-todd@sbcglobal.net, enzovenegas@mixmail.com
  Subject: Re: a new question
  In-Reply-To: <423A4F9A.6090509@sbcglobal.net>
  References: <E1DC4WY-0001As-00@relay.mixmail.com> <423A4F9A.6090509@sbcglobal.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox