# isSameDate Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Are the two dates identical without considering time.

```
(current: Date, compareTo?: Date | undefined) => boolean = ...
```

```
isSameDate(current: Date, compareTo?: Date): boolean
```

Are the two dates identical without considering time.

#### Parameters

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

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