W3cubDocs

/Angular

formatDate

Formats a date according to locale rules.

API

function formatDate(
  value: string | number | Date,
  format: string,
  locale: string,
  timezone?: string | undefined,
): string;

Description

Formats a date according to locale rules.


Exported by

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/common/formatDate