Skip to main content
6/7

text(): write a date out in words

Easy

Return the date written out for a letter: "February 27, 2020".

The full month name, the day without a leading zero, a comma, and the four-digit year.

Input

  • ri!date: Date

ri! Rule Inputs

ri!dateDate
date(2020, 2, 27)

Example 1: February

Input: ri!date
date(2020, 2, 27)
Expected output:
"February 27, 2020"

Example 2: A single-digit day

Input: ri!date
date(2026, 1, 5)
Expected output:
"January 5, 2026"

Example 3: The last day of a year

Input: ri!date
date(1999, 12, 31)
Expected output:
"December 31, 1999"

Appian Expression Tips

  • • Use ri!variableName for rule inputs
  • • Use a!localVariables(local!x: …, body) for locals
  • • Use a!forEach(items: …, expression: fv!item) to iterate
  • • Use where() / reject(fn!isnull, list) to filter