How do I check a date is actually today (the same date) rather than the difference between hours in a day?
I have three timestamps as examples, one is today (22/07/1
Moment to check date is today:
let dateStr = '2019-12-03 11:23'; /** * to check above date string is today use **isSame()** */ const status = moment(dateStr).isSame(moment(), 'day'); // O/P : **true**