isToday

Determines whether the passed date is today's date, ignoring the time part.

Parameters

targetDate Date

The date to be checked.

Returns

Boolean Returns true if the passed date is today's date, ignoring the time part.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var today = new Date();
    console.log(today); //Fri Nov 04 2016 16:58:30 GMT+0200 (FLE Standard Time)
    var isToday = kendo.date.isToday(targetDate);
    console.log(isToday); //false
</script>
In this article
Not finding the help you need? Improve this article