Calendar.GetWorkingHoursTimeSpan

Calendar.GetWorkingHoursTimeSpan method

Returns amount of working hours between the specified dates.

public TimeSpan GetWorkingHoursTimeSpan(DateTime start, DateTime finish)
ParameterTypeDescription
startDateTimeStart date of the interval.
finishDateTimeFinish date of the interval.

Return Value

Amount of working hours according to the calendar instance.

See Also