Partilhar via


SP.Utilities.DateUtility.dateToJulianDay(year, month, day) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets the number of days since January 1, 1601 for the specified date.

var value = SP.Utilities.DateUtility.dateToJulianDay(year, month, day);

Parameters

year

Type: int

The year to be converted. This must be greater than 1601.

month

Type: int

The month to be converted. This should be a value from 1 to 12.

day

Type: int

The day to be converted. This should be a value from 1 to 31.

Return Value

Type: int

The number of days since January 1, 1601.

Remarks

The specified year, month and day should be valid in the Gregorian calendar.

Applies To

SP.Utilities.DateUtility Class

See Also

Reference

SP.Utilities.DateUtility Methods

SP.Utilities Namespace