-
Tom Cooper 8,441 Reputation points
2022-11-15T04:15:37.857+00:00 In SQL Server, if the datatype of a value is DATETIME, it can not have formatting. All that is there is an internal coding of number of days since Jan 1 of the year 1900. There is no way to have formatting in the value unless you convert it to a varchar type. Normally you would want to do this in the calling program.
Tom
Try this: cast( getdate( ) as date )
.