You should use a third party date picker plugin which works on almost all browsers like JQuery UI Datepicker:
See the demo below:
https://jqueryui.com/datepicker/
<link rel="stylesheet" href="//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>
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
<p>Date: <input type="text" id="datepicker"></p>
How to use
In the <head> </head>
tags of your page insert the following lines:
<link rel="stylesheet" href="//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>
Now create an input element which will be used as the datepicker like below:
<input type="text" id="datepicker">
Now before closing the body tag (</body>
) copy the following lines:
<script>
$( function() {
$( "#datepicker" ).datepicker();
} );
</script>
Or if you want you can copy these lines in the head tags as well, but I would recommend you put them here.
</div>