I am trying to convert source field of DateTime attribute of format 03/08/2021 00:00:00 to target field of DateTime attribute to format 2021-03-08 00:00:00.
I tried using TO_DATE(TO_CHAR(DATE_CON,'YYYY-MM-DD HH24:MI:SS'),'YYYY-MM-DD HH24:MI:SS')
but got following error:
TT_11132 Transformation [Expression] had an error evaluating output column [DATE_CON]. Error message is [<> [TO_DATE]: invalid string for converting to Date ... t:TO_DATE(u:TO_CHAR(t:<03/08/2021 00:00:00>,u:'YYYY-MM-DD HH24:MI;SS'),u:'YYYY-MM-DD HH24:MI:SS ')].
How can I resolve this error? DataType of both source and target is DateTime.
datetime
data type. It hasdate
. And it hastimestamp
. Neither of which have a human-readable format. They're always stored in a packed binary format that is independent of the way the application may convert thedate
ortimestamp
to a human-readable string. – Justin Cave'YYYY-MM-DD HH24:MI;SS'),u:'YYY
. – Koushik Roy