pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Naomi Fullam <fullam@student.cs.ucc.ie>
To: pgsql-php@postgresql.org
Subject: format date retrieved from database
Date: Fri, 23 Mar 2001 20:30:27 +0000 (GMT)
Message-ID: <200103232030.UAA27942@student.cs.ucc.ie> (raw)

Hi
I found this function for mysql

SELECT DATE_FORMAT(myDateField, '%d-%m-%Y') FROM myTable

The DATE_FORMAT function allows one to format myDateField as I see fit,
I want to have it in date-month-year format. myDateField is of type
date.

Basically I was just wondering if there is a similar Postgres command?

Thanks in advance!

Naomi



view thread (2+ messages)  latest in thread

Message-ID: <200103232030.UAA27942@student.cs.ucc.ie>
Permalink:  ../200103232030.UAA27942@student.cs.ucc.ie/
Also on:    postgresql.org/message-id/200103232030.UAA27942@student.cs.ucc.ie

 · 

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: fullam@student.cs.ucc.ie
  Subject: Re: format date retrieved from database
  In-Reply-To: <200103232030.UAA27942@student.cs.ucc.ie>
  References: <200103232030.UAA27942@student.cs.ucc.ie>

* 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