After upgrading to Angular 11 the date pipe does not any longer display properly. If I try
date to display {{1610038272|date:"medium"}} === Jan 07, 2021, 16:51:12
but instead it displays
Jan 19, 1970, 16:13:58
Is there any breaking change which prevents a proper conversion? Or do I need to set something additonally?
You will need to provide the the date in milliseconds
Convert timestamp to date using Angular 2 pipes
{{ 1610038272 * 1000 | date: 'medium' }}
1.4m articles
1.4m replys
5 comments
57.0k users