Format

Overview

Formats a string value as specified

Syntax

Format(1, 2)

Function Properties

OrdinalTypeDescription
1stringRequiredString value to format
2stringRequiredFormat to apply to string. Choose MM/dd/yyyy or Cn, where n represents the number of decimal places in the currency value.

Example

In this sample code, the first function takes the string and applies the MM/dd/yyyyformat to it. The second function applies two decimal places to the string.