I am trying to get the date last week starting from now.
console.log(moment().day(-7).format('DD.MM.YYYY'));
It should show me 06.01.2017 but I am getting always 01.01.2017. I don't understand why. According to API this should work.
// when Monday is the first day of the week
moment().weekday(-7); // last Monday
Why do I get a wrong date and how to get the right date?