JQuery - Uncaught TypeError: startDate.getDate is not a function
问题 Using JQuery-UI datepicker, I am trying to calculate resumption date (end date) from commencement date (start date) and leave days excluding holidays and weekends. This event will be triggered when #leave_days is onkeyup. <input type="text" id="commencement_date" class="form-control commencement_date" placeholder="dd/mm/yyyy" readonly autocomplete="off" name="commencement_date"> <input type="text" id="leave_days" name="no_of_days" class="form-control no_of_days" placeholder="e.g. 10"