Skip site navigation (1) Skip section navigation (2)

Date format

From: Dylan Fogarty-MacDonald <dylan(dot)fm(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Date format
Date: 2006-07-31 05:23:26
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

I have two fields of column type 'date' from which I want to output a 
formatted date (with PHP).

I understand that MySQL  would use DATE_FORMAT and appropriate %M, %D 
I am having trouble finding the equivalent PostgresQL commands. I am 
using PG 7.3.4.

I have found the template patterns for the conversions. I want it to be 
in this format:

Day, DD Month YYYY

I do not know the function to format this so.

if to_date() converts a string to date, what converts/formats date to 

Thankyou very much.

-Dylan Fogarty-MacDonald


pgsql-novice by date

Next:From: Michael GlaesemannDate: 2006-07-31 05:38:20
Subject: Re: Date format
Previous:From: Glenn DavyDate: 2006-07-30 16:25:24
Subject: Re: user manage their own pg_hba entries

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group