Re: Extracting date from timestamp

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Extracting date from timestamp
Дата
Msg-id 427B73D5.5020307@archonet.com
обсуждение исходный текст
Ответ на Extracting date from timestamp  (Nageshwar Rao <NageshwarR@PLANETASIA.COM>)
Список pgsql-general
Nageshwar Rao wrote:
> How to extract date(mm/dd/yyy) from a timestamp .

See chapter 9.8. Data Type Formatting Functions, all about to_char()

If you just want your preset format you can use SELECT now()::date;


--
   Richard Huxton
   Archonet Ltd

В списке pgsql-general по дате отправления: