You posted the wanted output format, but more important is the format how the date values are stored; you didn't mentioned that.
SQL nvarchar to datetime
Li, Bin (Health)
0
Reputation points
Hi I have a question regarding datatype nvarchar. In the table I use, a variable 'date of presentation' is nvarchar(4000), i have convert nvarchar to Britishformat using:
SELECT CONVERT(nvarchar(4000),[Date of Presentation],103) AS Britishformat
From data source
WHERE [Date of Presentation] >='01/03/2023'
Britishformat
20/08/2022
19/03/2023
13/10/2022
25/03/2023
25/01/2023
14/03/2023
But after I executed it, it seems something wrong, some records before the date have been shown below, not sure why??
Can someone help me? thank a lot.