# formatValue (@salmonui/data-grid/engine/locale)

> The formatValue function of @salmonui/data-grid/engine/locale: Formats a value like a column format would (template helper). Formatters are shared per (locale, currency, time zone).

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-locale/formatValue

```ts
import { formatValue } from '@salmonui/data-grid/engine/locale';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-locale (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-locale.md).

## Reference

Kind: function

```ts
function formatValue(value: unknown, format?: string | FormatOptions, options?: FormatterOptions & {
    readonly type?: ColumnType;
}): string;
```

Formats a value like a column format would (template helper). Formatters are shared per (locale, currency, time zone).
