SP.DataConvert.createLocalDateTime(milliseconds) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Creates a Date object that represents a local time.

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

Parameters

milliseconds

Type: Int32

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

Return Value

Type: DateTime

The local time.

Remarks

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

Applies To

SP.DataConvert Class

See Also

Reference

SP.DataConvert Methods

SP Namespace