Repository navigation
Formatting
Home · BLL coding · App settings
The BLL app offers formatting Flow actions and functions in BLL expressions. Locale controls language and number conventions; date formatting also uses a time zone. Check the live examples in app settings for your own configuration.
For detailed format codes and more examples, choose date, time, or number.
Today: {[ date("dddd") ]}
Date: {[ date("yyyy-MM-dd") ]}
date(format, date?, locale?, timeZone?) formats the current date when no
date is supplied. For example, dddd is the long weekday name, yyyy the
year, MM the month and dd the day of the month. These codes are
case-sensitive. Settings includes previews and configurable default and
custom formats. Changing shared formats can affect other apps using BLL.
For a duration rather than a calendar date, use time(format, timeMs?, timeSec?). The settings example time("D", 1000000000) expresses a duration
in days. Use the Format time Flow card when you want a result tag.
Examples inside supported text:
Value: {[ number(1.45, 2, "nl") ]}
Percentage: {[ number(1.45, "percent") ]}
Price: {[ number(1.45, "currency", "EUR", null, "nl") ]}
The number function supports decimal precision, locale and styles including
percent, currency and unit. Percent formatting treats 1.45 as 145%, not
1.45%. The Format number action exposes the same kinds of options.
See the number-format examples
and the app settings for additional combinations.
Excel date formats are a separate syntax from BLL date formats; configure them under Exports rather than copying BLL format codes blindly.
Support development - If Better Logic Library is useful to you, you can support its
continued development through GitHub Sponsors,
Patreon,
PayPal, or
bunq.
Thank you!