← All pipes
Dates

calendarDayDifference

Signed difference of UTC calendar dates, not 24-hour durations.

Use it in your component

Standalone component
import { Component } from '@angular/core';
import { CalendarDayDifferencePipe } from 'extra-pipe';

@Component({
  standalone: true,
  imports: [CalendarDayDifferencePipe],
  template: `{{ "2026-01-01T23:00:00Z" | calendarDayDifference: "2026-01-02T01:00:00Z" }}`,
})
export class ExampleComponent {

}

Template
{{ "2026-01-01T23:00:00Z" | calendarDayDifference: "2026-01-02T01:00:00Z" }}

Try it live.

The output below runs the packed library. Edit data, not code.

Use double quotes for text, or a number, array, object or null.
Ordered parameters: end. Locale is controlled separately.
This pipe has no locale override.
Live template data
readonly value = "2026-01-01T23:00:00Z";
readonly parameter0 = "2026-01-02T01:00:00Z";
{{ value | calendarDayDifference: parameter0 }}

Rendered output

1