# isAnotherMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Are the two dates in different months.

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

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

Are the two dates in different months.

#### Parameters

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

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