Date
Format dates with the browser’s locale-aware formatter.
The date filter accepts a Date, timestamp, or date string. It delegates to
Intl.DateTimeFormat, so locale and formatting options follow the browser
standard.
<time>{{ task.dueAt | date:'en-GB' }}</time>
A missing or invalid input produces an empty string. Store real dates or unambiguous timestamps in application state.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.