firstDayOfMonth

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

Parameters

targetDate Date

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

Returns

Date Returns the first 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 firstDayOfMonth = kendo.date.firstDayOfMonth(targetDate);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(firstDayOfMonth); //Tue Nov 01 2016 00:00:00 GMT+0200 (FLE Standard Time)
</script>
In this article