Types of patterns
Use different patterns to generate custom formats of folios according to your needs.
Patterns allows you to inject numerical sequences, custom alphanumeric characters and current date info.
Below are examples of the different types of patterns and combinations you can use to generate custom folios.
Number pattern. Specifies how an incremental number is generated on each new record. Use more than one zero if you want the folio to have a fixed length and get filled with zeros on the left when possible.
Example | Current number | Output |
---|---|---|
{0} | 125 | 125 |
{0000} | 654 | 0654 |
{000000} | 12345 | 012345 |
Current day pattern. Specifies the current day (number) of the current date.
Example | Current date | Output |
---|---|---|
{DD} | Thursday, August 15, 2024 | 15 |
Month pattern. Specifies the current month (number) of the current date.
Example | Current date | Output |
---|---|---|
{MM} | Thursday, August 15, 2024 | 08 |
Year pattern. Specifies the current year, it can be with the entire sequence of digits or with the last two digits.
Example | Current date | Output |
---|---|---|
{YY} | Thursday, August 15, 2024 | 24 |
{YYYY} | Thursday, August 15, 2024 | 2024 |