JSFiddle - React, Tailwind, and code Playground
HTML
<input id="one" type="date">
<input id="two" type="time">
<button id="add">Добавить</button>
JavaScript
var notes = [];
var add = document.getElementById("add");
add.onclick = consider;
function consider(){
var elementone = document.getElementById('one');
var elementtwo = document.getElementById('two');
var attr = elementone.getAttribute("value");
console.log(attr);
}