Can't seem to find answer to what seems like a simple question. I have a date that is returned
2022-02-07 18:53:36.000
I need to convert that date to mm/dd/yyyy hh:mm.
Is that possible?
CodePudding user response:
select convert(varchar, getdate(), 13);
CodePudding user response:
I got the answer from another site. I've tested it and it works.
(CONVERT(VARCHAR(20), ea.event_timestamp, 101) ' ' LEFT(CONVERT(VARCHAR(20),ea.event_timestamp, 108) ,5)) AS EventDate