pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Abdul Wahab Dahalan <wahab@mimos.my>
Cc: pgsql-sql@postgresql.org
Subject: Re: Timestamp
Date: Wed, 22 Oct 2003 10:18:09 +0200
Message-ID: <3F963D41.3000307@klaster.net> (raw)
In-Reply-To: <3F963983.2020505@mimos.my>
References: <3F963983.2020505@mimos.my>

Dnia 2003-10-22 10:02, Użytkownik Abdul Wahab Dahalan napisał:

> 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?.

You can find it in documentation - 6.7. Data Type Formatting Functions

select to_char(departure,'DD-MM-YYYY HH24:MI:SS') ...


Regards,
Tomasz Myrta




view thread (13+ messages)  latest in thread

Message-ID: <3F963D41.3000307@klaster.net>
Permalink:  ../3F963D41.3000307@klaster.net/
Also on:    postgresql.org/message-id/3F963D41.3000307@klaster.net

 · 

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: jasiek@klaster.net, wahab@mimos.my
  Subject: Re: Timestamp
  In-Reply-To: <3F963D41.3000307@klaster.net>

* 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