PHP is a server-side language, however, JavaScript is a framework that you can use to provide this feature to your clients. If you are using jQuery, then the following control would be helpful to you,
Datepicker | jQuery UI[
^]. Date formats are provided for you, that you can use,
Datepicker | jQuery UI[
^].
$("#datepicker").datepicker("option", "dateFormat", "mm/yy");
Secondly, you can also set up the range of your date using "minDate" and "maxDate", for example like this,
$("#datepicker").datepicker({ minDate: new Date() });
All of the rest of the properties are also explained there that you can use. The example codes are also shown there.