[ad_1]
Your question is in part, answered here:
How do I get the current date in JavaScript?
From here you simply have to set the current value of a given input field, let’s say it’s ID is ‘date’.
document.getElementById('date').value = dateVariable;
[ad_2]
solved Java script code to show current date only in an input box of a HTML page [closed]