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);
    console.log(utcTime); //1478359511000
</script>
In this article
Not finding the help you need? Improve this article