FormatDate
Bill_Ross
Posts: 20
Snippet name: fd
Description: Format a date as YYYY-MM-DD
Code:
CONVERT(CHAR(10), <inDate, DateTime, GETDATE()>, 23) AS [Date]
Use Ctrl-Shift-M to populate the parameter.
Defaults to GetDate()
Description: Format a date as YYYY-MM-DD
Code:
CONVERT(CHAR(10), <inDate, DateTime, GETDATE()>, 23) AS [Date]
Use Ctrl-Shift-M to populate the parameter.
Defaults to GetDate()