Noob in MySQL here. I have a table that has a text type column that represents datetime, such as:
Sun, 17 Oct 2021 05:57:00 -0400
Thu, 09 Sep 2021 08:00:00 -0400
Thu, 15 Apr 2021 13:37:26 -0400
Mon, 01 Mar 2021 05:37:48 -0500
I want to convert this column from text type to datetime. Now, I know that I can use the STR_TO_DATE()
to convert string to datetime, but the problem is that the datetimes in the text column are not all in the same timezone. Some are in GMT-4, some are GMT-5. This makes the situation a bit tricky for me and I can't think of a way to solve this. As I said, I am a noob.
Can anyone please help me with this?