Display available dates from api and show the dates in datetime picker

Hello all, I was wondering if it will be possible for us to get some available dates from API which I can show user from datetime picker and grey out the dates which are not available to be selected. Can anyone help me with how can we achieve it.
1 answers

With a datepicker it seems complicated, you can show a popup and not allow the user to use a date that is not in the list returned by your API. (with the on change event).

If you really want to have grey out date, you may want to try to check if a javascript date picker may allow you to do that.

There is also some calendar widget in the app store that may allows you to do that, or something alike