toUtcTime

Returns the UTC time of a date in milliseconds.

Parameters

targetDate Date

The date to return the UTC time of.

Returns

Number Returns the UTC time of a date in milliseconds.

Example

<script>
    var targetDate = new Date(2016,10,5,15,25,11);
    var utcTime = kendo.date.toUtcTime(targetDate);
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(utcTime); //1478359511000
</script>
In this article