Help with date picker

Hi, I have a start date and an end date for a caravan rental & need the selected dates to be disabled once the user has confirmed the booking by clicking submit.

Is there a code out there that will allow for this?

I have looked at the disable dates resource but not sure this will work.

Any help would be greatly appreciated.