Skip to content
Edit this page

SiDateRangeCalculationService documentation

import { SiDateRangeCalculationService } from '@siemens/element-ng/date-range-filter';

Service to transform and calculate with DateRangeFilter objects.

Attributes and Methods

Name Type Description
removeTime()
(date: Date) => Date

Utility to reset the time attributes to 0 (hours/minutes/seconds/milliseconds).

Parameters
resolveDateRangeFilter()

Calculates the start and end dates of a DateRangeFilter.

Returns: The resolved result in form of a ResolvedDateRange object.

Parameters

Types Documentation

import type { DateRangeFilter } from '@siemens/element-ng/date-range-filter';
Properties

import type { ResolveDateRangeOptions } from '@siemens/element-ng/date-range-filter';
Properties
  • Skip normalization? When skipped, point1 will always be start, point2 will be end

    skipNormalization ? : boolean

  • Resolve time? When set to false, hours/minutes/seconds/ms are set to zero

    withTime ? : boolean = true

import type { ResolvedDateRange } from '@siemens/element-ng/date-range-filter';
Properties


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