Ciao ragazzi, alla fine ho risolto con jquery. Lascio la soluzione, cos chiunque capitasse qui alla ricerca di un calendario javascript da implementare con php o un altro linguaggio server side sa come fare.
Grazie mille a ninja72 per il suggerimento!!
Seguite queste spiegazioni https://webkul.com/blog/jquery-datepicker/
E' tutto ben documentato e facilissimo da implementare anche a chi non conosce bene javascript, date un'occhiata anche qui https://jqueryui.com/datepicker/
Ecco il codice che ho scritto per le mie esigenze.
codice HTML:<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>datepicker demo</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> </head> <body> <div id="datepicker"></div> <script> var dates = ["29/09/2020", "05/10/2020"]; var minDate = new Date(); minDate.setDate(minDate.getDate() + 1); function DisableDates(date) { var string = jQuery.datepicker.formatDate('dd/mm/yy', date); return [dates.indexOf(string) == -1]; } $(function() { $("#datepicker").datepicker({ beforeShowDay: DisableDates, numberOfMonths: 1, minDate: minDate, maxDate: "+3M", dateFormat: 'dd-mm-yy', onSelect: function() { window.location.href = "index.php?date=" + this.value; } }); }); </script> </body> </html>

Rispondi quotando