# parseDate Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Returns: A JS Date in accordance of the three parameters

```
(input: string, format: string, locale: string) => Date | undefined = ...
```

```
parseDate(input: string, format: string, locale: string): Date | undefined
```

Returns: A JS Date in accordance of the three parameters

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [input](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L208-L208>) | `string` |  | • String containing a date or dateTime value (Ex. "05/15/2020" |
| [format](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L208-L208>) | `string` |  | • Format of the input value (Ex. "M/d/YYYY") |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L208-L208>) | `string` |  | • Locale of the input value |

**Returns:** [Date](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Date>)`  |  `[undefined](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined>)
