我只想显示月份的名称,但是当我希望得到“MMMM”时,ноября格式的结果会变成"ноября“。它在moment.js (locale: ru)中工作正常:moment([2019, 11, 1]).format('MMMM') => 'ноябрь'
// if format doesn't start with mon
我需要使用date-fns库从月份名称中获取月份索引号。之前我使用的是moment.js,使用moment.js很简单 moment().month('March').format('M');
// Month name will be variableand I don't want to use static dictionary to get index number 如何使用date-fns库实现同样<e