previousDay

Returns the previous day.

Parameters

targetDate Date

The base date for returning the previous day.

Returns

Date Returns the previous day.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var previousDay = kendo.date.previousDay(targetDate);

/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(previousDay); //Fri Nov 04 2016 15:25:11 GMT+0200 (FLE Standard Time)
</script>
In this article