How can I choose on a calender only the dates that are on the database


For the Odin project I need to make a site where the user can choose a destitinaton, a date where the wants to leave.

Now I want that date choosen by a calender. But is it possible that only the dates where there is a departure date be chosen on the calender ?