use timestamp to get data using postgresql code example Example: postgres get timestamp SELECT CURRENT_TIMESTAMP;