Skip to main content

Formatters

When using a variable inside a text field, you can alter how that variable is processed and used (e.g., in file paths, log messages, or API data) by appending a pipe (|) and then the formatter name or symbol.


๐Ÿ’ก Quick Examples & Usageโ€‹

To apply a formatter, use the syntax:

{variable.Name|formatter}

Formatters can be chained together, with the order they appear being the order they are applied:

{file.Name|nospaces|upper}

Example Usage:โ€‹

If file.Size is the numerical value for 32,780,000,000 bytes and file.Create is 2022-10-29 11:41:00.

The template: {file.Name!} - {file.Size|size} {file.Create|dd-MM-yyyy} {file.Create|time}

Produces: FILENAME.EXT - 32.78 GB 29-10-2022 11:41

Hint: You can even use a formatter on a literal value you type in, for example {645645654|size} produces 645.65 MB.


Variable Formatter Referenceโ€‹

๐Ÿ”ก Case and Text Formattersโ€‹

These formatters adjust the case or general structure of text.

FormatterNameDescriptionExample InputExample Output
nameName CaseConverts a value to proper name case. Handles common prefixes like Mc, Mac, O', and hyphenated names.john mcsmith o'brienJohn McSmith O'Brien
!Upper CaseConverts the value entirely to UPPERCASE.myvalueMYVALUE
upperUpper Case(Alias for !) Converts the value entirely to UPPERCASE.myvalueMYVALUE
lowerLower CaseConverts the value entirely to lowercase.MYVALUEmyvalue
nospacesNo SpacesRemoves all spaces from the value.My ValueMyValue

๐Ÿ“… Time and Date Formattersโ€‹

These formatters are used for date and time values.

FormatterNameDescriptionExample Input (Format)Example Output
dateDateFormats the value as a standard date (e.g., based on system culture).Value11/17/2025
timeTimeFormats the value as a standard time (e.g., based on system culture).Value7:58 AM
datetimeDateTimeFormats the value as a standard date and time.Value11/17/2025 7:58 AM
Custom FormatDateTimeUse custom C# date and time format strings (e.g., d, M, h, m, s) for specific output.dd-MM-yyyy h:mm:ss tt17-11-2025 7:58:32 AM

๐Ÿ”ข Numeric and File Formattersโ€‹

These formatters are for numbers, file sizes, and file path manipulation.

FormatterNameDescriptionExample InputExample Output
countCountReturns the length (number of characters) of the value.FileName8
0Digits PaddingPads a number with leading zeros. Specify the total desired length, e.g., :0004.2 with :00040002
sizeFile SizeFormats a numeric value (bytes) into human-readable units (B, KB, MB, GB, TB).15000000001.4 GB
fileSafe FilenameConverts the value into a safe filename by removing or replacing unsafe characters.my/file:name?my-file-name