<input type="date" name="today" id="today" value="Date()">
i have done this but this does'nt work I want that the input should display the current date
<input type="date" name="today" id="today" value="Date()">
i have done this but this does'nt work I want that the input should display the current date
You can also use JS Date() Object:
document.getElementById('date').valueAsDate = new Date();
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<input type='date' id='date'>
</body>
</html>