I should somehow convert data type to easily insert into table with datetime format.
From
2022-11-28T12:18:46.534919023Z
To
2022-11-28 12:18:46
BTW using PostgreSQL.
Any ideas how to do it?
I should somehow convert data type to easily insert into table with datetime format.
From
2022-11-28T12:18:46.534919023Z
To
2022-11-28 12:18:46
BTW using PostgreSQL.
Any ideas how to do it?
2
Answers
More about CAST PostgreSQL CAST
There is no conversion necessary. The indicated value
2022-11-28T12:18:46.534919023Z
can be directly inserted into atimestamp with time zone (timestamptz)
column. See demo