DateWithZone.Add Method (DateWithZone, DayTimeDuration)DateWithZone.Add Method (DateWithZone, DayTimeDuration)DateWithZone::Add Method (DateWithZone, DayTimeDuration)

Syntax

Public Shared Function Add( _
    date As DateWithZone, _
    duration As DayTimeDuration _
) As DateWithZone
public static DateWithZone Add(
    DateWithZone date,
    DayTimeDuration duration
)
public:
static DateWithZone Add(
    DateWithZone date, 
    DayTimeDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionThe sum of duration and date is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue.