.ts
currentDate = Date.now();
.html
{{ currentDate | date }}
How can I display the time instead of Oct 25, 2019 I want it this way:
Signed this {{25th}} day of {{October}} {{2019}}?
Anyone there already implemented custom time format?
.ts
currentDate = Date.now();
.html
{{ currentDate | date }}
How can I display the time instead of Oct 25, 2019 I want it this way:
Signed this {{25th}} day of {{October}} {{2019}}?
Anyone there already implemented custom time format?
Full stackblitz with suffix and language support for month = working demo here
You can use this pipe:
You can implement a custom pipe for your date suffix and take the rest from the angular
date
pipe.HTML
Don't forget to add your custom pipe to module declarations!