Determines whether a date spans over a certain date range.


targetDate Date

The date to be checked.

lowerLimitDate Date

The lower limit date of the range.

upperLimitDate Date

The upper limit date of the range.


Boolean Returns true if the target date is within the date range.


    var targetDate = new Date(2016,10,5,14,25,11);
    var lowerLimitDate = new Date(2016,9,5,14,25,11);
    var upperLimitDate = new Date(2016,11,5,14,25,11);

    var isInDateRange =,lowerLimitDate,upperLimitDate);

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(isInDateRange); //true
In this article