Re: Timestamp - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: Timestamp
Date
Msg-id 3F963D41.3000307@klaster.net
Whole thread Raw
In response to Timestamp  (Abdul Wahab Dahalan <wahab@mimos.my>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: Abdul Wahab Dahalan
Date:
Subject: Timestamp
Next
From: achill@matrix.gatewaynet.com
Date:
Subject: Re: Timestamp