Edit this page

isInTimeRange

Determines whether the time part of a date is within the time span of a specific date range.

Parameters

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.

Returns

Boolean Returns true if the time part of a date is within the time span of a certain date range.

Example

<script>
    var targetDate = new Date(2016,5,5,15,25,11);
    var lowerLimitDate = new Date(2016,9,5,14,25,11);
    var upperLimitDate = new Date(2016,11,5,17,25,11);

    var isInTimeRange = kendo.date.isInTimeRange(targetDate,lowerLimitDate,upperLimitDate);
    console.log(isInTimeRange); //true
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy