setTime
Adds milliseconds to a date.
Parameters
targetDate Date
The date to add the milliseconds to.
millisecondsToAdd Number
The milliseconds that will be added to the date.
ignoreDST Boolean
A Boolean value that indicates whether the DST will be ignored. The default value is false
.
Example
<script>
var targetDate = new Date(2016,10,5,15,25,11);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(targetDate); // Sat Nov 05 2016 15:25:11 GMT+0200 (FLE Standard Time)
var ignoreDST = false;
kendo.date.setTime(targetDate, 999888777, ignoreDST);
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(targetDate); // Thu Nov 17 2016 05:09:59 GMT+0200 (FLE Standard Time)
</script>