Re: time

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Tadej Kanizar <Tadej(dot)Kanizar(at)sagit-server(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: time
Date: 2005-11-10 21:30:09
Message-ID: 20051110213009.GA61211@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • Re: time at 2005-11-10 19:29:07 from Tadej Kanizar

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2005-11-11 05:05:41 Re: how to update table to make dup values distinct
Previous Message Joel Fradkin 2005-11-10 20:19:01 High level discussion for design of using ACL to retrieve Data