my code is:
moment.locale('hr');
moment( '19 lipnja 2020', 'DD MMMM YYYY' ).format('DD-MM-YYYY');
It is giving wrong output.
"19-01-2020"
expected output.
"19-06-2020"
Am I doing something wrong?
updated:
when I am executing moment().format('DD MMMM YYYY');
then it is giving me 16 lipnja 2020