N/format Module

Use the format module to parse formatted data into strings and to convert strings into a specified format. The format module formats data according to personal preferences set on the Set Preferences page, accessible from Home > Set Preferences. See Setting Personal Preferences.

                                   

In This Help Topic

N/format Module Members

Member Type

Name

Return Type / Value Type

Supported Script Types

Description

Method

format.format(options)

string | Date

Client and server scripts

Takes a raw value and returns a formatted value.

Note:

This method is overloaded when you format a datetime or datetimetz value.

format.parse(options)

Date | string | number

Client and server scripts

Takes a formatted value and returns a raw value.

Note:

This method is overloaded when you format a datetime or datetimetz value.

Enum

format.Timezone

enum

Client and server scripts

Holds the string values for supported time zone formats. Use this enum to set the value of the options.timezone parameter.

format.Type

enum

Client and server scripts

Holds the string values for the supported field types. Use this enum to set the value of the options.type parameter.

Related Topics

General Notices