I think PHP is a server side language. It does not have any UI so that user could pick date. You have to use javascript libraries like jquery.