SP.DataConvert.createUnspecifiedDateTime(year, month, day, hour, minute, second, milliseconds) Method
Applies to: SharePoint Foundation 2010
In this article
Return Value
Remarks
Applies To
Creates a Date object that is neither local time nor Coordinated Universal Time (UTC).
var value = SP.DataConvert.createUnspecifiedDateTime(year, month, day, hour, minute, second, milliseconds);
Parameters
year
Type: Int32
The full year, for example, 1976 (and not 76).
month
Type: Int32
The month as an integer between 0 (January) and 11 (December).
day
Type: Int32
The day as an integer between 1 and 31.
hour
Type: Int32
A value from 0 (midnight) to 23 (11:00 P.M.) that specifies the hour.
minute
Type: Int32
A value from 0 to 59 that specifies the minutes.
second
Type: Int32
A value from 0 to 59 that specifies the seconds.
milliseconds
Type: Int32
A value from 0 to 999 that specifies the milliseconds.
Return Value
Type: DateTime
The date and time that is neither local time nor Coordinated Universal Time (UTC).
Remarks
This method creates a Date object with the specified year, month, day, hour, minute, second, and milliseconds, and specifies its kind property to SP.DateTimeKind Enumeration.unspecified to represent an unspecified time.