<!
DOCTYPE
html>
<
html
>
<
body
>
<
button
onclick=”CalenderFunction()">Put the date</
button
>
<
script
>
function CalenderFunction()n() {
var x = document.createElement("INPUT");
x.setAttribute("type", "date");
x.setAttribute("value", "2014-02-09");
document.body.appendChild(x);
}
</
script
>
</
body
>
</
html
>