Check If a Date is Yesterday in JavaScript or Node.js
Sometimes you want to check if a given date represents “yesterday”, the previous day of today. For example, this use-case appears in UI elements where you’re showing relative dates like “yesterday” instead of the YYYY-MM-DD format. This tutorial shows you how to detect whether a given date is yesterday! …
Continue Reading