I know it is possible to disable dates based on a database but is there a way to do the opposite and disable every other date except the ones in the database?
Basically that is the same thing whichever way you try to put it around in a question.
If you disable days and/or dates in a datepicker then they won’t be able to be chosen by the user in the datepicker input.
So, in theory you see what days and/or dates are in your dataset and just simply disable the days and/or dates that are not in there.
https://www.wix.com/corvid/forum/community-discussion/datepicker-reading-disableddates-from-database-solved
https://www.wix.com/corvid/forum/community-discussion/help-needed-creating-a-loop-to-check-for-db-items