Get month name using .getMonthName()

.getMonthName()


Description:Retrieve the month name in string value by passing through the numeric value.


Example:

<!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>getMonthName demo</title>
      <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
    </head>
    <body>
      
      <div class="content-container"></div>
      
      <script type="text/javascript">
         
         bitsyCode.ready(function(){
            var month = bitsyCode.getMonthName(5);
            bitsyCode(".content-container").text(month);
         })
         
      </script>
     
    </body>
    </html>

Preview:

Code:
bitsyCode.getMonthName(5);
Result:
  • Usage

    • How to use:

      Pass the month numeric value to this method.

    • USAGE:

      bitsyCode.BitsyCode.getMonthName(monthNumericValue);
  • Options

    • What options are there:

      There are no options for this method.

  • Returns

    • Returns: String // Returns a string containing the month name
Share