I am using moment-timezone and I am trying to format the date like this:
moment('dic. 23 2020 11:00').format('YYYY-MM-DD HH:mm');
I am getting that it's not valid?
any idea why?
I am using moment-timezone and I am trying to format the date like this:
moment('dic. 23 2020 11:00').format('YYYY-MM-DD HH:mm');
I am getting that it's not valid?
any idea why?
Try specifying the format parameter, after specifying the locale info. Have a look at this