<input type="date" id="dt" oninput="this.value = new Date(this.value) > new Date(2019, 10, 5) ? '2019-11-05' : this.value">