| От | Jeffrey Melloy |
|---|---|
| Тема | Re: How to get day of week? |
| Дата | |
| Msg-id | 41C89BC8.3060000@visualdistortion.org обсуждение исходный текст |
| Ответ на | How to get day of week? (Lloyd Dieter <ldieter@rochester.rr.com>) |
| Список | pgsql-novice |
The function you're looking for is to_char(), and it has tons of options. http://www.postgresql.org/docs/7.4/static/functions-formatting.html Jeff Lloyd Dieter wrote: >I'm sure I'm missing something obvious, but this is the novice list, so >here goes: > >Is there a function to return the day-of-week for a given time/datestamp? > >What I'm looking for is something like: > >select day(current_timestamp); > >That would return the current day of the week (e.g. Monday/Tuesday...) > >Thanks, > >-Lloyd > >---------------------------(end of broadcast)--------------------------- >TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > >
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера