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
I prefer to use moment lib
moment('dd/mm/yyyy').isSame(Date.now(), 'day');