<input type="time" id="dt"> <script> var date = new Date(Date.now()+(1000 * 60 * 30)); dt.value = date.toTimeString().slice(0,5); </script>