Re: Timestamp to date conversion...plz help me - Mailing list pgsql-general

From nolan@celery.tssi.com
Subject Re: Timestamp to date conversion...plz help me
Date
Msg-id 20031018195657.5301.qmail@celery.tssi.com
Whole thread Raw
In response to Timestamp to date conversion...plz help me  ("Jitender Kumar C" <Jitender.Chakka@igate.com>)
List pgsql-general
>     I want to extract date part (mm/dd/yy or any other date format) of Time=
> stamp in postgreSQL.  Can anyone help me out how I can proceed?.

You have at least two choices:

   select current_timestamp::date;

will give you the date in the default date format.

   select to_char(current_timestamp,'mm/dd/yy');

gives you control over the formatting.
--
Mike Nolan


pgsql-general by date:

Previous
From: Robert Creager
Date:
Subject: Re: 7.4b4 domain usage and select question
Next
From: Alvaro Herrera
Date:
Subject: Re: 7.4b4 domain usage and select question