Share via


ISPCalendar.IsDateValid Method

Returns a Boolean value that indicates whether the specified SimpleDate represents a valid date value.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Function IsDateValid ( _
    ByRef di As SimpleDate, _
    iAdvance As Integer, _
    jDayCurrent As Integer _
) As Boolean
'Usage
Dim instance As ISPCalendar
Dim di As SimpleDate
Dim iAdvance As Integer
Dim jDayCurrent As Integer
Dim returnValue As Boolean

returnValue = instance.IsDateValid(di, _
    iAdvance, jDayCurrent)
bool IsDateValid(
    ref SimpleDate di,
    int iAdvance,
    int jDayCurrent
)

Parameters

  • iAdvance
    Type: System.Int32

    The advance value to use for a Hijri calendar date.

  • jDayCurrent
    Type: System.Int32

    An integer value that represents the current Julian day to use when evaluating a Hijri calendar date.

Return Value

Type: System.Boolean
true if the date value is valid; otherwise, false.

See Also

Reference

ISPCalendar Interface

ISPCalendar Members

Microsoft.SharePoint.Utilities Namespace