Here is a good example:
declare @myDate datetime set @myDate = '06/09/2017' select concat(convert(varchar(20), @myDate,101), ' -- ', convert(varchar(20), @myDate,103), ' -- ', convert(varchar(20), @myDate,6))
This is what you get, depending on 101 or 103 or 6 :
09/06/2017 -- 06/09/2017 -- 06 Sep 17
A good summary of date types here - https://www.w3schools.com/sql/func_convert.asp
source share