| От | Raymond O'Donnell |
|---|---|
| Тема | Re: Problem working with dates and times. |
| Дата | |
| Msg-id | 4574A3DC.13748.CF8C14@rod.iol.ie обсуждение исходный текст |
| Ответ на | Problem working with dates and times. ("Alejandro Michelin Salomon \( Adinet \)" <alejmsg@adinet.com.uy>) |
| Список | pgsql-general |
On 4 Dec 2006 at 20:13, Alejandro Michelin Salomon ( Adinet ) wrote: > But i only need 2006-12-05 from the resulting timestamp. > How to cut only the date from this timestamp? Use date_trunc() just to lop off the time part of the timestamp: http://www.postgresql.org/docs/8.2/static/functions- datetime.html#FUNCTIONS-DATETIME-TRUNC Alternatively, use to_char() to format the output exactly as you'd like it: http://www.postgresql.org/docs/8.2/static/functions-formatting.html --Ray. ---------------------------------------------------------------------- Raymond O'Donnell Director of Music, Galway Cathedral, Galway, Ireland rod@iol.ie ----------------------------------------------------------------------
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера