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;
document.getElementById("datePicker").valueAsDate = new Date()
var date = new Date();
var currentDate = date.toISOString().substring(0,10);
var now = new Date();
var day = ("0" + now.getDate()).slice(-2);
var month = ("0" + (now.getMonth() + 1)).slice(-2);
var today = now.getFullYear() + "-" + month + "-" + day;