Skip to content

Instantly share code, notes, and snippets.

View michaelmontero's full-sized avatar
🎯
Focusing

Michael Montero michaelmontero

🎯
Focusing
  • Santo Domingo, Dominican Republic
View GitHub Profile
const Moment = require("moment");
const { extendMoment } = require('moment-range');
const moment = extendMoment(Moment);
var contains = (startDate, endDate, checkDate) => {
var range = moment.range(startDate, endDate);
return range.contains(checkDate);
};