Dates
businessDaysDifference
Signed UTC Mon–Fri day counts with caller-supplied holidays.
Use it in your component
Standalone component
import { Component } from '@angular/core';
import { BusinessDaysDifferencePipe } from 'extra-pipe';
@Component({
standalone: true,
imports: [BusinessDaysDifferencePipe],
template: `{{ "2026-01-02T00:00:00Z" | businessDaysDifference: "2026-01-05T00:00:00Z" }}`,
})
export class ExampleComponent {
}
Template
{{ "2026-01-02T00:00:00Z" | businessDaysDifference: "2026-01-05T00: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, holidays. Locale is controlled separately.
This pipe has no locale override.
Live template data
readonly value = "2026-01-02T00:00:00Z";
readonly parameter0 = "2026-01-05T00:00:00Z";
{{ value | businessDaysDifference: parameter0 }}
Rendered output
1