Localizing day and month in moment.js

Viewed 3447

How can I localize current day and month (without year) in moment.js? What I want is exactly the output of moment().format('LL') but without the year part.

Consider the following example:

moment().locale('tr').format('LL') // "1 Haziran 2017"
moment().locale('en').format('LL') // "June 1, 2017"

What I want is these:

moment().locale('tr').format('??') // "1 Haziran"
moment().locale('en').format('??') // "June 1"
3 Answers
Related