Re: Timestamp to date conversion...plz help me

Поиск
Список
Период
Сортировка
От nolan@celery.tssi.com
Тема Re: Timestamp to date conversion...plz help me
Дата
Msg-id 20031018195657.5301.qmail@celery.tssi.com
обсуждение исходный текст
Ответ на Timestamp to date conversion...plz help me  ("Jitender Kumar C" <Jitender.Chakka@igate.com>)
Список 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 по дате отправления:

Предыдущее
От: Robert Creager
Дата:
Сообщение: Re: 7.4b4 domain usage and select question
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: 7.4b4 domain usage and select question