# getNamedFormat Type documentation

## TypeScript declaration

### [getNamedFormat](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L322-L363>)

**Kind:** constant

```
import { getNamedFormat } from '@siemens/element-ng/datepicker';
```

```
(locale: string, format: string) => string = ...
```

```
getNamedFormat(locale: string, format: string): string
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L322-L322>) | `string` |  |  |
| [format](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L322-L322>) | `string` |  |  |

**Returns:** [string](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String>)
