In this tutorial I shall show you, how to set current date in input type date in html.
Step 1 – Create an html basic document
In the above screenshot you can see I have created the basic structure of the html document.
Now let’s create an input field that takes data only as value.
Step 2 – Create date type input field
Now let’s render it to our web browser to see the changes.
In the above screenshot you will see both changes before setting date and after setting current date.
We have successfully set the current date to our date type input field.
You may also like: