# isBetweenMonth Type documentation

## TypeScript declaration

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

**Kind:** constant

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

Compare the current month is between start and end month. from \< current \< to

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

```
isBetweenMonth(current: Date, from?: Date, to?: Date): boolean
```

Compare the current month is between start and end month. from \< current \< to

#### Parameters

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

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