Moment JS Get Month Name from Date Example

By Hardik Savani | January 18, 2021 | Category : jQuery

This tutorial shows you moment js get month name from date. if you want to see example of moment js get month from date then you are a right place. This article goes in detailed on get month name from date moment jquery. This article goes in detailed on jquery moment get month from date. Let's see bellow example how to get month name from date in moment js.

Here, i will give you simple example of jquery moment js get month name from date using format('MMMM').

let's see both example with output:


<!DOCTYPE html>



<title>jquery moment example -</title>

<script src="" crossorigin="anonymous"></script>

<script src="" crossorigin="anonymous"></script>



<h1>jquery moment example -</h1>


<script type="text/javascript">

var oneDate = moment('02-01-2021', 'DD-MM-YYYY');

var monthName = oneDate.format('MM');


var oneDate = moment();

var monthName = oneDate.format('MMMM');







I hope it can help you...

Tags : jQuery Moment JS

Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.

We are Recommending you: