momentjs - moment.js - Convert short month to long month? -


given following short month:

var shortmonth = 'jan'; 

how can convert long month format january using moment.js?

moment().format('mmmm'); gives long month format of current month, can't seem find way convert short month long month.

something moment().format(shortmonth,'mmmm'); example doesn't work.

any idea how work?

try this:

moment('jan', 'mmm').format('mmmm') 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -