Please try the following:
SELECT CONVERT(VARCHAR(5), BirthOn,101) AS [MM/DD]
FROM CL_ClientEmployee
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I connect to Azure SQL database form Local SSMS.
please find the below points.
ExampleA)
input
1900-01-01(value in BirthOn column)
output
01/01
(Month/Date)
ExampleB)
input
1900-12-01(value in BirthOn column)
output
12/01
(Month/Date)
Please try the following:
SELECT CONVERT(VARCHAR(5), BirthOn,101) AS [MM/DD]
FROM CL_ClientEmployee