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

 

Function Description

  • currency()
  • currencyNoSymbol()
  • grouped()
  • integer()
  • integerUngrouped()
  • number()
  • numberUngrouped()

The currency(), grouped(), integer() and number() functions allow you to format a number, possibly with a custom pattern. See Number 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 in different ways. See Date, date/time and time functions.

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

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

 
  • Last Topic Update: 24/01/2017 09:32
  • Last Published: 7/6/2017 : 9:49 AM