getDate

Gets the date only - that is, removes the time part.

Parameters

date Date

The date to remove the time part.

Returns

Date A new date without the time part.

Example

<script>
    var myDate = new Date(2016,10,5,14,25,11);

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(myDate); // Sat Nov 05 2016 14:25:11 GMT+0200 (FLE Standard Time)
    var newDate = kendo.date.getDate(myDate);

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(newDate); // Sat Nov 05 2016 00:00:00 GMT+0200 (FLE Standard Time)
</script>
In this article