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)
Share:
11,987
The Vanilla Thrilla
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, 2022

Comments

  • The Vanilla Thrilla
    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!