You are here: Designer > API > Designer API > formatter
 

formatter

The formatter is a global object that allows you to format values in a script.

The Text Script Wizard also allows you to format variable data; see Using the Text Script Wizard and Formatting variable data.

The TextFormatter object is now deprecated and will eventually be removed.

Functions

 

  • date()
  • dateLong()
  • dateMedium()
  • dateShort()
  • dateTime()
  • dateTimeLong()
  • dateTimeMedium()
  • dateTimeShort()
  • timeLong()
  • timeMedium()
  • timeShort()

The date, dateTime and time functions allow you to format a date and/or time. See Date, date/time and time functions.

  • lowerCase()
  • upperCase()
  • properCase()

The text formatting functions transform all characters to lowercase (lowerCase) or uppercase (upperCase) or transforms the first character of each word to uppercase and all other characters to lowercase (properCase).