I have to subtract three days from the current date. I had referred few other answers , but the solution is listed using js file.
I should not use .js file of ember
Challenge is how to do it in .hbs file ? ..
I have to subtract three days from the current date. I had referred few other answers , but the solution is listed using js file.
I should not use .js file of ember
Challenge is how to do it in .hbs file ? ..
If you are using Handlebar Moment so it's easy
{{moment d subtract="days" amount="3"}}
or
{{moment date=d format='YYYY-MM-DD' subtract='days' amount='3'}}
Give it a try