SPIntlCal.LocalToJulianDay method (SPCalendarType, SimpleDate, Int32)
Returns the Julian day of the specified date in the specified calendar type.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function LocalToJulianDay ( _
calType As SPCalendarType, _
ByRef di As SimpleDate, _
iAdvance As Integer _
) As Integer
'Usage
Dim calType As SPCalendarType
Dim di As SimpleDate
Dim iAdvance As Integer
Dim returnValue As Integer
returnValue = SPIntlCal.LocalToJulianDay(calType, _
di, iAdvance)
public static int LocalToJulianDay(
SPCalendarType calType,
ref SimpleDate di,
int iAdvance
)
Parameters
calType
Type: Microsoft.SharePoint.SPCalendarTypeAn SPCalendarType object that represents a calendar type.
di
Type: Microsoft.SharePoint.Utilities.SimpleDateA SimpleDate object that represents a date value that contains the year, month, and day.
iAdvance
Type: System.Int32A 32-bit integer that represents the advance value to use for a Hijri calendar date.
Return value
Type: System.Int32
An integer value that represents the Julian day.