I\'m struggling with a moment.js \"query\" to figure out if a date (ex : 12/10/2014) is within the range of the day before \"today\", or two days after \"today\".
Be
As of moment@2.15.1, there is a isBetween method that allow to check if a date is between two dates, with inclusive and exclusive support.
moment@2.15.1
isBetween
Check http://momentjs.com/docs/#/query/is-between/
Example:
moment(dateToCheck).isBetween(startDate, endDate);