Finally, Microsoft introduced Format function in SQL Server 2012, code name denali that is very handy to format dates, times and currency in different cultures and custom format

In prior versions, we have to create our own function to format number.

Refer related article for prior versions: Format Number in SQL.

In this blog, I am sharing some of the examples of how to format date, time, currency and number with format function.