Html – How to set a default date in html?


I am editing a HTML file and there is one attribute application deadline. How can I set a default value to the application deadline to one year after today in the html code? Thanks for helping

Below is the original HTML code

    <div class="field" >
        Application Deadline:
        <input type="date" id="id_application_deadline" name="application_deadline">

Best Solution

This is not possible without java script, Try this

<script language="javascript">
today = new Date();
document.write("", today.getDate(),"/",today.getMonth()+1,"/",today.getYear());