Skip to content

compareMonth Type documentation

TypeScript declaration

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

Compares two months.

Returns: 0 if the months are equal, a number less than 0 if the first month is earlier, a number greater than 0 if the first month is later.

compareMonth(first: Date, second: Date): number

Compares two months.

Returns: 0 if the months are equal, a number less than 0 if the first month is earlier, a number greater than 0 if the first month is later.

Parameters

Except where otherwise noted, content on this site is licensed under MIT License.