IN HTML:
<input type="hidden" id="StartDate" value="2018/2/21">
IN JS:
var datex = document.getElementById("StartDate").value;
IN HTML:
<input type="hidden" id="StartDate" value="2018/2/21">
IN JS:
var datex = document.getElementById("StartDate").value;