Convert a datetime column into a specific date format. (T-SQL)
11,987
Convert it to a string with the appropriate conversion style;
convert(varchar(10), thedatecol, 101)
![The Vanilla Thrilla](https://i.stack.imgur.com/bQu4g.png?s=256&g=1)
Author by
The Vanilla Thrilla
I'm just an amateur C#/ASP.NET developer with additional experience in C++/Java/Visual Basic.
Updated on June 27, 2022Comments
-
The Vanilla Thrilla about 2 years
I have a
datetime
column (SellDate
) that I want to output in the following format:mm/dd/yyyy
such as
06/01/1998
How would I do this? Thanks in advance!
-
marc_s over 12 yearsSee Books Online: CAST and CONVERT which has a complete list of all supported formats for
CONVERT
-