For datepicker type questions you can restrict the dates that the learner can choose.

Setting the min. and max. date greys out and disables all other dates that are not within that range, so that the learner can't select those dates.

Example of what learner sees (dates after June 1st are greyed out):

You can restrict between specific dates, or relative dates like from the current date to 30 days ahead.