SyntaxFix
Write A Post
Hire A Developer
Questions
You can use date:'yyyy-MM-dd' pipe
date:'yyyy-MM-dd'
curDate=new Date(); <p>{{curDate | date:'yyyy-MM-dd'}}</p>