Answers for "postgres date"

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
1

postgresql get date from datetime

SELECT DATE(column_name) FROM table_name;
Posted by: Guest on December-07-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language