- Index
- »
- axon
- »
- func:localeUse
def
func:localeUse
localeUse(locale, expr)
Evaluate an expression within a specific locale. This enables formatting and parsing of localized text using a locale other than the default for the current context.
Examples:
// format Date in German localeUse("de", today().format) // parse Date in German localeUse("de", parseDate("01 Mär 2021", "DD MMM YYYY"))