According to this post, I am using this script:
<input type="datetime-local" id="start-date" min="2021-06-07T14:47:57" />
and
let dateInput = document.getElementById("start-date");
dateInput.min = new Date().toISOString().split(".")[0];
However, I am trying to eliminate the seconds and I am finding it difficult. How can I do that? TIA