I have an issue as I am trying to select Date values stored in SQL server as String value with this format "Thu, 08 Jul 2021 06:08:20 -0700" and i need to select all table with newest date in first but I do not know how to convert this String into Date and sort it. Thanks in advance.
Table
|Thu, 08 Jul 2021 06:08:20 -0700| |Fri, 09 Jul 2021 01:08:20 -0700| |Sun, 11 Jul 2021 07:08:20 -0700| output (Newest Date first)
|Sun, 11 Jul 2021 07:08:20 -0700| |Fri, 09 Jul 2021 01:08:20 -0700| |Thu, 08 Jul 2021 06:08:20 -0700|
TRY_CONVERT. You should stop storing your dates as strings.CONVERTas far as I know.