lastDayOfMonth

Returns the last day of a month without the time part out of a date object.

Parameters

targetDate Date

The date object to get the last day of the month of.

Returns

Date Returns the last day of a month without the time part out of a date object.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var lastDayOfMonth = kendo.date.lastDayOfMonth(targetDate);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(lastDayOfMonth); //Wed Nov 30 2016 00:00:00 GMT+0200 (FLE Standard Time)
</script>
In this article