title: How to find business days in current month with Javascript?
body: <p>How can i create function for finding numbers of business days of current month? Can you code in simple javascript without Jquery.</p>
  
  <pre><code>    function daysInMonth(iMonth, iYear)
      {
      return 32 - new Date(iYear, iMonth, 32).getDate();
      }
  
      function Detail() {
      var d = new Date();
      var year = d.getFullYear();
      var month = d.getMonth();
      var dim = daysInMonth(month, year);
      alert(dim);
      }
      function Businessday(iMonth, iYear)
      {
     //   enter code here
      } 
      function isBusinessDay(){
      var d=new Date();
      var day = d.getDay();
      switch(day) {
          case 0:
              document.write("Today is Weekend");
          break;
          case 6:
          document.write("Today is Weekend");
              break;
              default:
              document.write("Today is business day");
          }
             }
  </code></pre>
  
  <p>Thanks in advance. </p>