# Interface FormatOptions

Settings that affect how the features strings are formatted.

interface FormatOptions {
currency?: string;
dateFormat?: string;
defaultExpressionValue?: string;
format: string;
fractionalDigits?: number;
isDateOnly?: boolean;
locale?: string;
numberFormat?: string;
timeFormat?: string;
timeZone?: string;
}

#### Hierarchy (view full)

- FormatOptions
  - FormatOptions

#####
Index

### Properties

currency?
dateFormat?
defaultExpressionValue?
format
fractionalDigits?
isDateOnly?
locale?
numberFormat?
timeFormat?
timeZone?

##
Properties

### `Optional` currency

currency?: string

The default unit of currency to use when formatting currency. See utilities/format/number!NumberSettings.currency.

Inherited from FormatOptions.currency

### `Optional` dateFormat

dateFormat?: string

The default format to use when formatting dates. See utilities/format/date!DateFormatter.format.

Inherited from FormatOptions.dateFormat

### `Optional` defaultExpressionValue

defaultExpressionValue?: string

The default string value for unevaluated expression values. Defaults to an empty string.

### format

format: string

The string format. See utilities/format/string!StringFormatter.format.

Inherited from FormatOptions.format

### `Optional` fractionalDigits

fractionalDigits?: number

The default number of digits to show after the decimal point when formatting numbers. See utilities/format/number!NumberSettings.fractionalDigits.

Inherited from FormatOptions.fractionalDigits

### `Optional` isDateOnly

isDateOnly?: boolean

Indicates if a formatted date should be formatted without the time component even if the format suggests to include a time.

Inherited from FormatOptions.isDateOnly

### `Optional` locale

locale?: string

The locale to use when formatting numbers and dates. If not specified, the current locale is used (see locale module).

Inherited from FormatOptions.locale

### `Optional` numberFormat

numberFormat?: string

The default format to use when formatting numbers. See utilities/format/number!NumberFormatter.format.

Inherited from FormatOptions.numberFormat

### `Optional` timeFormat

timeFormat?: string

The default format to use when formatting times. See utilities/format/time!TimeFormatter.format.

Inherited from FormatOptions.timeFormat

### `Optional` timeZone

timeZone?: string

The time zone of a date being formatted. See utilities/format/date!DateFormatter.timeZone.

Inherited from FormatOptions.timeZone