Re: time - Mailing list pgsql-sql

From Michael Fuhr
Subject Re: time
Date
Msg-id 20051110213009.GA61211@winnie.fuhr.org
Whole thread Raw
In response to Re: time  ("Tadej Kanizar" <Tadej.Kanizar@sagit-server.com>)
List pgsql-sql
On Thu, Nov 10, 2005 at 08:29:07PM +0100, Tadej Kanizar wrote:
> I have a table with a column of type TIMESTAMP.
> In output, I need to format it.. what's the best way to do it?
> So, for instance, how could I format it so that it would output as YY-MM-DD
> HH:MM?

See to_char() in the "Data Type Formatting Functions" section
of the "Functions and Operators" chapter in the documentation.

http://www.postgresql.org/docs/8.0/interactive/functions-formatting.html

-- 
Michael Fuhr


pgsql-sql by date:

Previous
From: "Tadej Kanizar"
Date:
Subject: Re: time
Next
From: "Joel Fradkin"
Date:
Subject: High level discussion for design of using ACL to retrieve Data