Back to Blog

SQL Where

Format Function in SQL Server

Format dates and numbers with SQL Server FORMAT function. Learn custom formats, cultural settings, and best practices for data presentation.

1 min read

Last updated on

The Format Function can help you change how a date or decimal is displayed.

In this video I do a quick demonstration of the Format Function.

I use the Wide World Importers and the following scripts:

select OrderDate,Format(OrderDate,'MMM dd, yyyy')

from [Sales].[Orders]

where year(OrderDate) = 2016

Link to the Microsoft SQL Server Custom Date Formatters.

See the original SQL Format for Date video.

About Joey Blue

Joey Blue teaches practical data skills that companies actually use. With 25+ years of experience solving real data problems for Fortune 500 companies, he's helped 152,000+ students learn SQL, Power BI, reporting, and modern analytics—cutting straight to what works.