Custom Date/Time formatting in SQL Server
Use DATENAME and wrap the logic in a Function, not a Stored Proc declare @myTime as DateTime set @myTime = GETDATE() select @myTime select DATENAME(day, @myTime) + SUBSTRING(UPPER(DATENAME(month, @myTime)), 0,4) Returns “14OCT” Try not to use any Character / String based operations if possible when working with dates. They are numerical (a float) and performance … Read more