How i can get the current date with a specific format \'yyyy-MM-dd\', for today by example i with that the result be: \'2018-07-12\', with using just the command
<
You can use date:'yyyy-MM-dd' pipe
date:'yyyy-MM-dd'
curDate=new Date(); {{curDate | date:'yyyy-MM-dd'}}
{{curDate | date:'yyyy-MM-dd'}}