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();

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(today); //Fri Nov 04 2016 16:58:30 GMT+0200 (FLE Standard Time)
    var isToday = kendo.date.isToday(targetDate);

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(isToday); //false
</script>
In this article