Date pipe

Formats a date value according to locale rules.

Date pipe → is a → Pipe.
{{ value_expression | date [ : format [ : timezone [ : locale ] ] ] }}

The result of this pipe is not reevaluated when the input is mutated. To avoid the need to reformat the date on every change-detection cycle, treat the date as an immutable object and change the reference when the pipe needs to run again.

Related concepts

Date pipe

Date pipe — Structure map

Clickable & Draggable!

Date pipe — Related pages: