Months in MomentJs
are indexed from 0 to 11. January is represented by 0 and December by 11. How can I elegantly format the date ensuring the correct month value is displayed?
For instance:
// if the date is 10.January.2020
moment(date).format('DDmmYYYY')
// the output would be: 10002020 but I aim to show: 10012020