K
K
kr_ilya2018-10-01 19:53:16
JavaScript
kr_ilya, 2018-10-01 19:53:16

How to go from date to month name in Moment.js?

MM.YYYYHow to get the name of the month from the format date ?
For example, go from 10.2018to Октябрь?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-01
@kr_ilya

moment('10.2018', 'MM.YYYY').locale('ru').format('MMMM')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question