Below are examples of how to use the SQL FORMAT function to format dates. The article for formatting numeric values is here. FORMATMESSAGE can be used, too