Skip to content

Instantly share code, notes, and snippets.

@pierdom
Last active September 6, 2017 08:08
Show Gist options
  • Select an option

  • Save pierdom/6a2e439dcec6855568db7ccd09708e47 to your computer and use it in GitHub Desktop.

Select an option

Save pierdom/6a2e439dcec6855568db7ccd09708e47 to your computer and use it in GitHub Desktop.
[Postgres: from date to weekday] Get week of the day from a date column in Postgres (full name: monday, tuesday, ...) #postgresql #sql
select to_char(<mydate>, 'day')
from mytable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment