Error Code Portal
PostgreSQLPostgreSQLError code

22007

invalid datetime format

Alternative forms: invalid_datetime_format

Code 22007 · An issue reported by PostgreSQL.

invalid_datetime_format (Class 22 — Data Exception)

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.