Answers for "day of week postgresql"

SQL
4

datepart postgres

SELECT date_part('day', TIMESTAMP '2001-02-16 20:38:40');
Result: 16

SELECT date_part('hour', INTERVAL '4 hours 3 minutes');
Result: 4
Posted by: Guest on January-13-2020
0

postgres week number

select to_char(current_date, 'IYYY-IW');
Posted by: Guest on September-23-2021
0

day of week postgresql

select extract(dow from date '2016-12-18'); /* sunday */
Posted by: Guest on October-14-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language