pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Tadej Kanizar <Tadej.Kanizar@sagit-server.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: time
Date: Thu, 10 Nov 2005 14:30:09 -0700
Message-ID: <20051110213009.GA61211@winnie.fuhr.org> (raw)
In-Reply-To: <003601c5e62d$06b09600$680aa8c0@Tadejnotebook>
References: <11040.1131650023@sss.pgh.pa.us>
	<003601c5e62d$06b09600$680aa8c0@Tadejnotebook>

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



view thread (10+ messages)

Message-ID: <20051110213009.GA61211@winnie.fuhr.org>
Permalink:  ../20051110213009.GA61211@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051110213009.GA61211@winnie.fuhr.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mike@fuhr.org, Tadej.Kanizar@sagit-server.com
  Subject: Re: time
  In-Reply-To: <20051110213009.GA61211@winnie.fuhr.org>

* 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