Formatting
Format variables the way you want them to look
Number
To format numbers, use the $number
format function:
Variable Name: the name of your variable that will contain the value to be formatted. Format String: the text code that tells Documint how to would like to format the value
General
$number
Used for applying custom formatting to numbers.
Signature
{{$number value format_string [locale]}}
Arguments
Returns
Formatted number
Example #1 - Basic
Example #2 - With Default
Standard
Currency
Example:
Percentage
Duration
Source: numeral.js
Date/Time
To format dates, use the $date
format function:
Example
Standard
Source: moment.js
Current Date/Time
To add the current date/time use the Date formatter with the format property set.
Example
Last updated