Issue
How to get date format 01 Sep, 2021 in angular application.
Looking for pipe format example to get this date format on the web page.
Solution
Use DatePipe
with following format 'dd MMM, yyyy'
dd
- Numeric: 2 digits + zero padded
MMM
- Abbreviated
YYYY
- Numeric: 4 digits or more + zero padded
{{ date | date: 'dd MMM, yyyy' }}
Output
01 Sep, 2021
Answered By - Yong Shun
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.