title: Navigate Bootstrap Datepicker with Previous and Next Buttons
body: <p>How can I get Previous and Next Button functionality to Navigate Bootstrap Datepicker with jquery as in fig bellow</p>
  
  <p><a href="https://i.stack.imgur.com/e9I7P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e9I7P.png" alt="enter image description here"></a></p>
  
  <p>I have tried like</p>
  
  <pre><code> function PrevNext(isnextbtn)
      {
          var date = new Date();
          var searchdate = new Date();
  
          if ($('#txtDate').val().length &gt; 0){
              date = new Date($('#txtDate').val());
          }
          else {
              date = new Date('@DateTime.Now.ToShortDateString()');
          }
  
          alert(date);
  
          if (isnextbtn == 1) {
              searchdate = date.setDate(date.getDate() + 1, 1);
          }
          else {
              searchdate = date.setDate(date.getDate() - 1, 1);
          }
  
          $('#txtDate').datepicker('setDate', searchdate);
      }
  </code></pre>