I have a date object in JavaScript and I want to figure out if that date is today. What is the fastest way of doing this?
My concern was around comparing date object
var someDate = new Date("6 Dec 2011").toDateString(); var today = new Date().toDateString(); var datesAreSame = (today === someDate);