I have 2 jQuery Date fields
Arrival date should not be today - I got this sorting using minDate: 1 in javascript
Departure date should always be at least 2 days prior to arrival date. I thought minDate: 3 would work, but this is a matter with today's date. it works great if the user selects the date of tomorrow in the arrival field, but if the user selects the arrival date in the future, it breaks. I need a departure date in order to indicate the arrival date and move it 2 days in advance, as the minimum date that the user can choose, in fact, when booking this hotel the user cannot stay for one night, it takes 2 nights.
Finally, I also need to calculate the number of nights between the arrival date and the departure date in the third text box. therefore, when the departure date is entered, it automatically enters the number of nights in the third text box. I also need it to work in the reverse order, if the user decides to set the number of nights, I need the departure date to change accordingly.
Jack wells
source
share