Posts

Showing posts from July, 2019

Adding days to date while ignoring weekends using Javascript

1. In this post we can learn declaring the date picker in html page and getting the selected value. 2. Setting the date picker control disabling the weekends and disabling the previous dates. 3. Adding the Number of days to Selected date with Excluding the Weekends. HTML Code Snippet: <div>            <label>                Start Date:                 </label>            <input type="text" id="_startDatePicker" readonly>         </div>               <div style="margin-top: 10px;">             <label>Date after adding Days:</label>             <input type="text" id="_duration" disabled>         </div> CSS and JS reference Files:  <link href="datepicker.css" rel="stylesheet" type="text/css">         <link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css" rel="stylesheet" typ