method NonworkingTimes.Add (Expression as String, StartTime as String, EndTime as String, IDNonworkingPattern as Long)
Adds a NonworkingTime object to the collection and returns a reference to the newly created object.

TypeDescription
Expression as String A String expression that defines the days where the non-working time-interval is shown. For instance, the "weekday(value) = 1" indicates that the non-working time-interval should be displayed on Mondays . The Expression property supports value keyword among with a lot of operators and predefined functions. 
StartTime as String A String expression that specifies the time to start the non-working time-interval. For instance, the "08:00" indicates the an 8 AM, while the "16:15" indicates the 8:15 PM 
EndTime as String A String expression that specifies the time to end  the non-working time-interval. For instance, the "08:00" indicates the an 8 AM, while the "16:15" indicates the 8:15 PM 
IDNonworkingPattern as Long A Long expression that specifies the identifier of the NonworkingPattern object that will be associated with the newly created non-working time-interval 
ReturnDescription
NonworkingTimeA NonworkingTime object being created.
The Add method of the NonworkingTimes objects adds a new non-working time interval. The Expression property indicates the expression that defines the dates to include the specified non-working interval. The IsValid property indicates whether the non-working expression is valid, and so, if it is visible or hidden. The StartTime/EndTime property defines the time to start/end the non-working time-zone. The ShowNonworkingTime property shows or hides the defined non-working intervals. The NonworkingTimeFromPoint property gets the non-working object from the cursor.

The NonworkingTimes object holds a collection of NonworkingTime objects. The NonworkingTime object indicates a time interval to be shown as non-working. Each NonworkingTime object can associate a NonworkingPattern object that specifies the colors and the pattern to show the non-working zone. The NonworkingPatterns collection is accessible through the NonworkingPatterns property of the control. The NonworkingDays property of the calendar defines the days to be non-working in the calendar. 

The NonworkingTime's advantages are: