0

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 ? ..

Community
  • 1
  • 1
Manikandan
  • 1,234
  • 11
  • 18

1 Answers1

1

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

Majid
  • 2,507
  • 2
  • 19
  • 18