Get day name using .getDayName()

.getDayName()


Description: Retrieve the day name in string value by the numeric value.


Example:

<!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>getDayName 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 day = bitsyCode.getDayName(4);
            bitsyCode(".content-container").text(day);
         })
         
      </script>
     
    </body>
    </html>

Preview:

Code:
bitsyCode.getDayName(4);
Result:
  • Usage

    • How to use:

      Pass the day numeric value to this method.

    • USAGE:

      bitsyCode.getDayName(DayNumericValue);
  • Options

    • What options are there:

      There are no options for this method.

  • Returns

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