What is the best way to determine if a date is today in JavaScript?

后端 未结 5 1475
北荒
北荒 2020-12-05 23:32

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

5条回答
提交回复
热议问题