I have this date '2021-04-22T17:06:59.391Z'
stored in UTC datetime, but the column datatype is VARCHAR
. How do I convert this to a regular datetime with column datatype date
?
- Existing column (type
VARCHAR
) -2021-04-22T17:06:59.391Z
- Expected output (type
DATE
) -2021-04-22 17:06:59