how to convert timestamp to date postgres code example Example: postgres timestamp to datetime to_timestamp(field_name)::timestamp