I need to convert "2022-04-29T07:20:32.727Z" to "2022-04-29 07:20:32".
I am quite new to SQL and haven’t found the solution after 2 hours of searching, need it urgently.
>Solution :
You can use cast()
select cast('2022-04-29T07:20:32.727Z' as datetime)
| Output |
|---|
| 2022-04-29 07:20:32.727 |