Restrict calendar values for a date field in Web designer

Hi All,

I am using One Identity Version 9.0.

In the web designer there are date fields(Valid from and Valid to) that is taking input from the User in web portal.

I want to display only certain date ranges in the calendar based on a particular query(already created), so that the user would be able to select date only from the available date slots and rest of the dates are disabled(grayed out).

Kindly let me know if it is feasible.