Gouache painting of three ribbons with straight, zigzag and scalloped edges, the zigzag one painted red

FORMAT Function in SQL Server: Dates, Numbers and Speed

The FORMAT function turns a date or a number into text with one pattern, and it needs SQL Server 2012 or later. This post shows the patterns for dates and numbers, the culture argument, and the lower case mm that silently returns minutes instead of the month. It also measures FORMAT against CONVERT over 200,000 rows, so you know when to use which.

Read More