Answers for "set value input date javascript"

1

set value input date javascript

var date = new Date();
var currentDate = date.toISOString().substring(0,10);
var currentTime = date.toISOString().substring(11,16);

document.getElementById('currentDate').value = currentDate;
document.getElementById('currentTime').value = currentTime;
Posted by: Guest on September-08-2021

Code answers related to "set value input date javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language