# FormatOptions (@salmonui/core/format)

> The FormatOptions interface of @salmonui/core/format: Number presets (N2, C, P1), custom number patterns (#,##0.00), date skeletons (yMMMd, short), or custom date patterns (dd/MM/yyyy HH:mm).

Canonical: https://salmonui.dev/docs/reference/core/format/FormatOptions

```ts
import type { FormatOptions } from '@salmonui/core/format';
```

Entry index: https://salmonui.dev/docs/reference/core/format (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/format.md).

## Reference

Kind: interface

```ts
interface FormatOptions {
    readonly type?: 'number' | 'date' | 'datetime';
    readonly format?: string;
    readonly skeleton?: string;
    readonly currency?: string;
    readonly minimumFractionDigits?: number;
    readonly maximumFractionDigits?: number;
    readonly useGrouping?: boolean;
    readonly timeZone?: string;
}
```

Number presets (`N2`, `C`, `P1`), custom number patterns (`#,##0.00`), date skeletons (`yMMMd`, `short`), or custom date patterns (`dd/MM/yyyy HH:mm`).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type?: 'number' \| 'date' \| 'datetime';` | optional |  |
| `format` | `readonly format?: string;` | optional | Preset or custom pattern. |
| `skeleton` | `readonly skeleton?: string;` | optional | Date skeleton such as `yMd`, `yMMMEd`, `Hm`, or a style: `short` \| `medium` \| `long` \| `full`. |
| `currency` | `readonly currency?: string;` | optional | ISO 4217 code for currency formats. Defaults to the grid `currency` option. |
| `minimumFractionDigits` | `readonly minimumFractionDigits?: number;` | optional |  |
| `maximumFractionDigits` | `readonly maximumFractionDigits?: number;` | optional |  |
| `useGrouping` | `readonly useGrouping?: boolean;` | optional |  |
| `timeZone` | `readonly timeZone?: string;` | optional | IANA time zone. Defaults to the grid `timeZone` option. Set it for deterministic SSR output. |
