how to ge date and time from timestamp pgsql code example
Example 1: postgres get timestamp
SELECT CURRENT_TIMESTAMP;
Example 2: postgresql get date from datetime
SELECT DATE(column_name) FROM table_name;
SELECT CURRENT_TIMESTAMP;
SELECT DATE(column_name) FROM table_name;