I want to get the days of month of the last 7 days. E. g. if today is the 4th of december I need to get 3, 2, 1, 30, 29, 28, 27
Therefore I wanted to subtract a duration of one day in a loop. This website states that it is possible:https://developer.garmin.com/downloa...ybox/Time.html
Moment - Duration Moment.subtract() Moment An earlier Moment
Nevertheless, I can't get that running, since the method moment.subtract requires a moment and not a duration. Is this information in the API wrong? Is there another fancy way to get the last 7 days?