pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Ângelo Marcos Rigo <angelo_rigo@yahoo.com.br>
To: pgsql-php@postgresql.org
Subject: Re: formating dates
Date: Tue, 14 Jun 2005 12:58:17 -0700
Message-ID: <200506141258.17102.scrawford@pinpointresearch.com> (raw)
In-Reply-To: <20050614194425.18990.qmail@web33707.mail.mud.yahoo.com>
References: <20050614194425.18990.qmail@web33707.mail.mud.yahoo.com>

On Tuesday 14 June 2005 12:44 pm, Ângelo Marcos Rigo wrote:
> Hi can i format dates from postgresql stored in the
> aaa-mm-dd format to June 14 2005 - Tuesday ?
>
> using just postgresql functions?

select to_char(now(), 'FMMonth dd yyyy - FMDay');

See to_char() documentation for more.

Cheers,
Steve




view thread (4+ messages)  latest in thread

Message-ID: <200506141258.17102.scrawford@pinpointresearch.com>
Permalink:  ../200506141258.17102.scrawford@pinpointresearch.com/
Also on:    postgresql.org/message-id/200506141258.17102.scrawford@pinpointresearch.com

 · 

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: scrawford@pinpointresearch.com, angelo_rigo@yahoo.com.br
  Subject: Re: formating dates
  In-Reply-To: <200506141258.17102.scrawford@pinpointresearch.com>
  References: <20050614194425.18990.qmail@web33707.mail.mud.yahoo.com> <200506141258.17102.scrawford@pinpointresearch.com>

* 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