Dates
isoWeek
UTC ISO week-year and week number for reporting.
Use it in your component
Standalone component
import { Component } from '@angular/core';
import { JsonPipe } from '@angular/common';
import { IsoWeekPipe } from 'extra-pipe';
@Component({
standalone: true,
imports: [IsoWeekPipe, JsonPipe],
template: `{{ "2026-01-01T00:00:00Z" | isoWeek | json }}`,
})
export class ExampleComponent {
}
Template
{{ "2026-01-01T00:00:00Z" | isoWeek | json }}
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.
No parameters: use []. Locale is controlled separately.
This pipe has no locale override.
Live template data
readonly value = "2026-01-01T00:00:00Z";
{{ value | isoWeek | json }}
Rendered output
{
"year": 2026,
"week": 1
}