Scheduler for WinForms | ComponentOne
C1.ScheduleCore Assembly / C1.Schedule Namespace / CalendarInfo Class / IsWorkingInterval Method
The System.DateTime value specifying the interval start time.
The System.DateTime value specifying the interval end time.

In This Topic
    IsWorkingInterval Method
    In This Topic
    Returns true if specified time interval is a working time.
    Syntax
    'Declaration
     
    Public Function IsWorkingInterval( _
       ByVal start As System.Date, _
       ByVal end As System.Date _
    ) As System.Boolean
    public System.bool IsWorkingInterval( 
       System.DateTime start,
       System.DateTime end
    )

    Parameters

    start
    The System.DateTime value specifying the interval start time.
    end
    The System.DateTime value specifying the interval end time.

    Return Value

    True if specified date is not weekend or holiday; false - otherwise.
    Remarks
    It doesn't check for working days.
    See Also