Here you can find the source of isToDay()
Date.prototype.isToDay =function(){ var today = new Date(); return today.toDateString() == this.toDateString(); };
Date.prototype.isToday = function(){ const today = new Date(); return this.getYear() === today.getYear() && this.getMonth() === today.getMonth() && this.getDate() === today.getDate(); };
Date.prototype.isToday = function() { return this.toLocaleDateString() === new Date().toLocaleDateString();
Date.prototype.isToday = function() { var today = new Date(); return today.getYear() == this.getYear() && today.getMonth() == this.getMonth() && today.getDate() == this.getDate(); };
Date.prototype.isToday = function() { var today = new Date(); return (today.getFullYear() == this.getFullYear() && today.getMonth() == this.getMonth() && today.getDate() == this.getDate()); };