Skip to content
Related Articles

Related Articles

jQuery UI Datepicker monthNames Option

View Discussion
Improve Article
Save Article
  • Last Updated : 25 Feb, 2021

jQuery UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. jQueryUI Datepickers widget in jQueryUI allow users to enter dates easily and visually. In this article we will see how to use monthNames option in jQuery UI Datepicker.
monthNames option is used to set the name of the month in the jQuery UI datepicker.


   {monthNames: [ "January", "February", "March", 
   "April", "May", "June", "July", "August", 
   "September", "October", "November", "December" ]}

Approach: First, add jQuery UI scripts needed for your project.

<link href = “” rel = “stylesheet”>
<script src = “”></script>
<script src = “”></script>

Example 1:


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link href=
    <script src=
    <script src=
    <!-- JavaScript code -->
        $(function () {
                    dateFormat: "yy/dd/mm/MM",
                    monthNames: ["jan", "feb", "mar", 
                    "april", "may", "jun", "jul", 
                    "aug", "sep", "oct", "nov", "dec"]
    <h3>jQuery UI | datepicker monthNames option</h3>
    <p>Enter Date: <input type="text" id="gfg"></p>



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!