Skip to content

isSameOrBetweenMonth Type documentation

TypeScript declaration

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

Compare the current month is the same month or between start and end month.

Returns: true if the date is in the provided range.

isSameOrBetweenMonth(current: Date, from?: Date, to?: Date): boolean

Compare the current month is the same month or between start and end month.

Returns: true if the date is in the provided range.

Parameters
  • • the month object.

    current: Date

  • • optional min month, if no value is provided we assume true for the min value.

    from?: Date

  • • optional max month, if no value is provided we assume true for the max value.

    to?: Date


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