moment giving wrong month
Author: shubhambatraCreated Jun 16, 2020Updated Sep 2, 2026
moment.locale('hr'); moment(moment().format('DD MMMM YYYY'), 'DD MMMM YYYY').format('DD MMMM YYYY')
let's suppose current date is 16 june 2020
expected output:
16 lipanj 2020
current output:
16 siječnja 2020
Source: moment/moment