What is the best way to determine if a date is today in JavaScript? December 8, 2023 by Tarik You could use toDateString: var d = new Date() var bool = (d.toDateString() === otherDate.toDateString());