admin管理员组

文章数量:1389536

could some one tell how to achieve below format in angular?.

expected:

20JAN2019

right now with angular default pipe. am getting like

20/01/2019 when using {{slotEndDate | date:'dd/MM/yyyy'}}

do i need write custom pipe to get desired output?

kindly share some examples or demo stackblitz.

Thank you

could some one tell how to achieve below format in angular?.

expected:

20JAN2019

right now with angular default pipe. am getting like

20/01/2019 when using {{slotEndDate | date:'dd/MM/yyyy'}}

do i need write custom pipe to get desired output?

kindly share some examples or demo stackblitz.

Thank you

Share Improve this question asked Apr 11, 2019 at 8:42 Mr. LearnerMr. Learner 1,0383 gold badges22 silver badges52 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

You can use the built in DatePipe of Angular. See the available formatting options here.

To format the date to your liking you would need to use ddMMMyyyy.

本文标签: javascriptAngular 6Date pipeStack Overflow