From: achill@matrix.gatewaynet.com
To: Abdul Wahab Dahalan <wahab@mimos.my>
Cc: pgsql-sql@postgresql.org
Subject: Re: Timestamp
Date: Wed, 22 Oct 2003 11:39:00 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0310221134120.25619-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <3F963983.2020505@mimos.my>
On Wed, 22 Oct 2003, Abdul Wahab Dahalan 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
Maybe
SET DateStyle TO 'German' ;
SELECT replace(departure,'.','-') from <yourtable> ;
is close to what you want,
but better leave it default and format the date (input/output) from your
app.
>
> 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
>
--
-Achilleus
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: achill@matrix.gatewaynet.com, wahab@mimos.my
Subject: Re: Timestamp
In-Reply-To: <Pine.LNX.4.44.0310221134120.25619-100000@matrix.gatewaynet.com>
References: <3F963983.2020505@mimos.my> <Pine.LNX.4.44.0310221134120.25619-100000@matrix.gatewaynet.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