pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Theodore Petrosky <tedpet5@yahoo.com>
To: Abdul Wahab Dahalan <wahab@mimos.my>
To: pgsql-sql@postgresql.org
Subject: Re: Timestamp
Date: Wed, 22 Oct 2003 04:40:32 -0700 (PDT)
Message-ID: <20031022114032.44723.qmail@web41009.mail.yahoo.com> (raw)
In-Reply-To: <3F963983.2020505@mimos.my>

Check this out....

http://www.postgresql.org/docs/7.3/static/functions-formatting.html

to_char(departure, 'MM-DD-YYYY HH24:MI:SS') as
newformatdeparture


Ted
--- Abdul Wahab Dahalan <wahab@mimos.my> wrote:
> Hi !
> In my database I've a field "departure" with
> timestamp without time zone 
> data type.
> eg :
> departure
> 2003-11-01 14:29:46
> 
> Now I want to select it as in this format 01-11-2003
> 14:29:46 How should 
> I do it?.
> 
> Thank you for any help.
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



view thread (13+ messages)

Message-ID: <20031022114032.44723.qmail@web41009.mail.yahoo.com>
Permalink:  ../20031022114032.44723.qmail@web41009.mail.yahoo.com/
Also on:    postgresql.org/message-id/20031022114032.44723.qmail@web41009.mail.yahoo.com

 · 

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: tedpet5@yahoo.com, wahab@mimos.my
  Subject: Re: Timestamp
  In-Reply-To: <20031022114032.44723.qmail@web41009.mail.yahoo.com>

* 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