-
Notifications
You must be signed in to change notification settings - Fork 197
Open
Description
Hello!
- I have
start = 04.02.2020
end = 1.03.2020 or 2.03.2020 or 3.03.2020
const range = moment.range(start, end)
When I do console.log(range) - it's ok
But then
let months = Array.from(range.by('months')).map(m => m.format('MMM'))
let days = Array.from(range.by('days')).map(m => m.format('DD MMM YYYY'))
at the end:
months = ['feb.'] - wrong
days = [04.02.2020 , ....] - it's ok
Even if I do
let months = Array.from(range.by('months', {excludeEnd: false})).map(m => m.format('MMM'))
at the end: months = ['feb.'] - wrong
But if
2)
start = 01.02.2020
end = 1.03.2020 or 2.03.2020 or 3.03.2020
at the end: months = ['feb.', 'mart'] - ok
What should I do to make 1 work?
It's my false or no?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels