# isAfterMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

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

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

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

Is first month after the second month (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#L682-L682>) | `Date` |  |  |
| [compareTo](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/date-time-helper.ts#L682-L682>) | `Date` |  |  |

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