FOR Example if I have:
DECLARE @Day int = 25 DECLARE @Month int = 10 DECLARE @Year int = 2016
I want to return
2016-10-2
select convert(varchar(11), transfer_date, 106)
got me my desired result of date formatted as 07 Mar 2018
My column 'transfer_date' is a datetime type column and I am using SQL Server 2017 on azure