← All pipes
Dates

localizedDate

Format dates using an explicit locale.

Use it in your component

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

@Component({
  standalone: true,
  imports: [LocalizedDatePipe],
  template: `{{ '2026-01-01T12:00:00Z' | localizedDate: 'fr' }}`,
})
export class ExampleComponent {

}

Template
{{ '2026-01-01T12:00:00Z' | localizedDate: 'fr' }}

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.
Applied to the live output.
Live template data
readonly value = "2026-01-01T12:00:00Z";

{{ value | localizedDate: "en-US" }}

Rendered output

1/1/2026