How to convert html5 input type date and time to javascript datetime
All you need to do is pull the value from both inputs, concatenate them, then pass them to a date object.
Fiddle: http://jsfiddle.net/P4bva/
HTML
Date:<input id="date" type="date" name="task_date" />
Time:<input id="time" type="time" name="task_time" />
<button id="calc">Get Time</button>
JS
var calc = document.getElementById("calc")
calc.addEventListener("click", function() {
var date = document.getElementById("date").value,
time = document.getElementById("time").value
console.log(new Date(date + " " + time))
})