Skip to content

SiDateRangeCalculationService documentation

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

Service to transform and calculate with DateRangeFilter objects.

Attributes and Methods

NameTypeDescription
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
import type { ResolvedDateRange } from '@siemens/element-ng/date-range-filter';

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