postgres convert date string to timestamp in where clause code example Example: postgres timestamp to datetime to_timestamp(field_name)::timestamp