How to get the month name from Date using JavaScript ? Last Updated : 17 Jan, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The purpose of this article is to get the month name from a particular date using JavaScript getMonth() method. This method is used to fetch the month(0 to 11) from the given Date object. It returns an integer value ranging from (0 to 11) Zero (0) means January, 1 means February, and so on, till 11 means December. Syntax: DateObj.getMonth() Example: The below code is used to display the current month belonging to the particular Date. HTML <body style="text-align:center;"> <h2 style="color:green"> GeeksForGeeks </h2> <h2> How to get month name from Date using Javascript? </h2> <button onclick="myFunction()"> Click Me! </button> <h3 id="demoID" style="color:green;"> </h3> <script> function myFunction() { // initializing an array const months = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ]; const d = new Date(); document.getElementById( "demoID").innerHTML = "The current month is " + months[d.getMonth()]; } </script> </body> Output: get the month name from Date using JavaScript Comment More infoAdvertise with us Next Article How to get the first and last date of current month using JavaScript ? M manaschhabra2 Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Questions Similar Reads How to remove time from date using JavaScript ? Given a Date Object and the task is to remove the time portion from the object using JavaScript. JavaScript split() Method: This method is used to split a string into an array of substrings, and returns the new array. Syntax: string.split( separator, limit ) Parameters: separator: This parameter is 2 min read How to get the day and month of a year using JavaScript ? Given a date and the task is to get the day and month of a year using JavaScript. Approach: First get the current date by using new Date().Use getDay() method to get the current day in number format, Map it to the day name.Use getMonth() to get the current month in number format, Map it to the month 2 min read How to get the first and last date of current month using JavaScript ? Given a month and the task is to determine the first and last day of that month in proper format using JavaScript. JavaScript getDate() Method: This method returns the day of the month (from 1 to 31) for the defined date. Syntax: Date.getDate() Parameters: This method does not accept any parameters. 3 min read How to Get the Number of Days in a Specified Month using JavaScript? Here are different methods to get the number of days in specified month in JavaScript.1. JavaScript getDate() MethodThe getDate() method returns the number of days in a month (from 1 to 31) for the defined date. SyntaxDate.getDate();Example: This example gets the days in the month (February) of the 3 min read How to calculate the date three months prior using JavaScript ? To calculate the date three months prior using JavaScript, we could use the getMonth() and setMonth() methods. In this article, we are going to learn how to calculate the date three months prior using JavaScript. ApproachFirst, select the date object.Then use the getMonth() method to get the months. 1 min read How to get Day Month and Year from Date Object in JavaScript ? We have given the Date object and the task is to extract the Day, Month, and Year from the Date object and print it using JavaScript. Below is an example for better understanding. Example:Input: Date ObjectOutput: Day: 26 Month: 11 Year: 2023To extract Day, Month, and Year from Date Object, we have 3 min read Like