SP.DataConvert.createUtcDateTime(milliseconds) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Creates a Date object that represents a Coordinated Universal Time (UTC).

var value = SP.DataConvert.createUtcDateTime(milliseconds);

Parameters

milliseconds

Type: Int32

The number of milliseconds in Coordinated Universal Time between the specified date and midnight, January 1, 1970.

Return Value

Type: DateTime

The UTC date and time.

Remarks

This method creates a Date object with the specified milliseconds, and specifies its kind property to SP.DateTimeKind Enumeration.utc to represent a UTC.

Applies To

SP.DataConvert Class

See Also

Reference

SP.DataConvert Methods

SP Namespace