Skip to content
Edit this page

isSameOrBetween Type documentation

TypeScript declaration

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

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

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

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

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

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

Parameters
  • • the date object.

    current : Date

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

    from ? : Date

  • • optional max date, 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.