JSFiddle - React, Tailwind, and code Playground
by Chris
HTML
<input type="date" id="txtDate" />
JavaScript
$(function(){
var dtToday = new Date();
const max = new Date(dtToday.getTime() + 365 * 24 * 3600 * 1000).toISOString().substring(0, 10);
$('#txtDate').attr('max', max);
});