js check date is today code example
Example 1: get today's date javascript
var today = new Date();
Example 2: javascript date between two dates
// `min`, `max` and `date` are `Date` instances
const isBetween = (date, min, max) => (date.getTime() >= min.getTime() && date.getTime() <= max.getTime());