<input type=date id=e> <script> document.getElementById('e').value = new Date().toISOString().substring(0, 10); </script>