JSFiddle - React, Tailwind, and code Playground
JavaScript
var inputDate = new Date("11/21/2011");
var todaysDate = new Date();
alert(inputDate.setHours(0,0,0,0) == todaysDate.setHours(0,0,0,0));
var inputDate = new Date("11/21/2011");
var todaysDate = new Date();
alert(inputDate.setHours(0,0,0,0) == todaysDate.setHours(0,0,0,0));