I have used following code snippet to restrict previous dates in datetimelocal input. It works fine but it returns seconds and milliseconds too. How to get only hours and minutes?
$(document).ready(function(){
let elem = document.getElementById("application_start_date")
const iso = new Date().toISOString();
const minDate = iso.substring(0, iso.length - 1);
elem.value = minDate
elem.min = minDate
});