FORMAT Function for Transact-SQL – T-SQL

Returns a value formatted with the specified format and optional culture in SQL Server 2016. Use the FORMAT function for locale-aware formatting of date/time and number values as strings. FORMAT ( value, format ) Return Types:  nvarchar or null The length of the return value is determined by the format. Remarks:   FORMAT returns NULL for errors other than a culture that is not valid. For example, NULL is returned if the value specified in format is not…

Read More