--- title: "Format" slug: "format" updated: 2024-05-04T19:34:40Z published: 2024-05-04T19:34:40Z canonical: "help.mail-and-deploy.com/format" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mail-and-deploy.com/llms.txt > Use this file to discover all available pages before exploring further. # Format ### General The format function takes a [Number](/release34/docs/number) or [Date-Time](/release34/docs/date-time) value and converts it to a [String](/release34/docs/string) applying the supplied [Format String](/release34/docs/format-strings). ### Syntax You can call the *Format* function using the following syntax: Format Functin Syntax Format(, , []) The parameters of the function are: | Name | Description | | --- | --- | | value | The [Number](/release34/docs/number) or [Date-Time](/release34/docs/date-time) value to format. | | format string | The [Format String](/release34/docs/format-strings) to apply. | | culture code | The code of the culture to use when formatting. If you don't specify this optional parameter, the currently applicable culture will be used; this is either the default culture (which can be configured in the [Server Settings](/release34/docs/server-settings) or a culture that has been activated using an [Activate Culture](/release34/docs/activate-culture) action.). This needs to be one of the values of the CultureInfo Code column of the  [Culture Code List](https://azuliadesigns.com/c-sharp-tutorials/list-net-culture-country-codes/). | ### Examples The following expression returns a [String](/release34/docs/string) that contains the formatted number *1234* using a [Format String](/release34/docs/format-strings) that adds group and decimal separators and enforces two decimals and at least one digit before the decimal separator: Format Function Example Format(1234, "#,##0.00") The following expression returns a [String](/release34/docs/string) that contains the formatted number *1234* using a [Format String](/release34/docs/format-strings) that adds group and decimal separators and enforces two decimals and at least one digit before the decimal separator using the US-american decimal and group separators: Format Function Example Format(1234, "#,##0.00", "en-US") The following expression formats the numeric value of the variable *vNumericValue* of the [Datasource](/release34/docs/introduction-to-datasources) named *MyDatasource* by using a [Datasource Variable Value Placeholder](/release34/docs/datasource-variable-value) and a [Format String](/release34/docs/format-strings) that enforces three digits, no decimals, and no group separator: Format Function Example Format([Datasource].[MyDatasource].[Variable].[vNumericValue], "000")