I have this html:
js:
var time = $(\'#time\').val(); console.log(time
Try using valueAsDate property
valueAsDate
$("input[type=time]").on("change", function() { console.log(this.valueAsDate) })
<input required="" id="time" type="time"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>