I'm looking for some help. I have a date field as datetime YYYY/MM/DD HH:MM:SS and I need it to be a DD/MM/YYYY HH:MM:SS. Then I used convert(varchar) but can't order by desc, show this:
31/01/2019 17:00:00:000 31/01/2019 17:00:00:000 18/01/2019 13:30:00:000 18/01/2019 13:30:00:000 07/02/2019 03:00:00:000 07/02/2019 03:00:00:000 14/02/2019 12:00:00:000 CONVERT(VARCHAR(10),ISNULL(tbl_date1,tbl_date2),103) + ' ' + CONVERT(VARCHAR(20),ISNULL(tbl_date1,tbl_date2),14) I dont know how to do this in sql. I have tired cast, and convert, and I keep getting same results.
I have been searching, and trying different methods, just not getting results. Any help would be so appreicated, thank you!