I have following scenario's
1. Find the max date from selected date and from that get the previous date of the max date.
e.g. available dates
if user selects dates
1/28//2017 - max date based on selections
1/25//2017 - prev date based on selected max date
1/22//2017 - min date
Thanks for your help