Skip site navigation (1) Skip section navigation (2)

formating a select from a timestamp column

From: stig erikson <stigerikson_nospam_(at)yahoo(dot)se>
To: pgsql-novice(at)postgresql(dot)org
Subject: formating a select from a timestamp column
Date: 2005-11-13 10:30:33
Message-ID: dl74of$2b3o$ (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
hi i have a column that is declared as:
datum timestamp DEFAULT ('now'::text)::timestamp(6) with time zone

then i do:
SELECT datum from table;
and get something like: 2005-11-13 00:00:00

i would like the output to be on the format: 2005-11-13
how can i change it?

i use postgresql 8.1



pgsql-novice by date

Next:From: Kevin LippiattDate: 2005-11-13 13:26:18
Subject: Install RPM Pre-req
Previous:From: dawizzDate: 2005-11-13 09:49:16
Subject: Error: could not find function

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group