# maxDate Type documentation

## TypeScript declaration

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

**Kind:** constant

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

```
(first?: Date | undefined, second?: Date | undefined) => Date | undefined = ...
```

```
maxDate(first?: Date, second?: Date): Date | undefined
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [first](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L798-L798>) (optional) | `Date` |  |  |
| [second](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L798-L798>) (optional) | `Date` |  |  |

**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>)
