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 badges1 Answer
Reset to default 6You 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
版权声明:本文标题:javascript - Angular 6 - Date pipe - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744581601a2613956.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论