# isAfter Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Is first date after the second date (without considering the time). current \> compareTo

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

```
isAfter(current: Date, compareTo: Date): boolean
```

Is first date after the second date (without considering the time). current \> compareTo

#### Parameters

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

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