DateWithZone.Add Method (DateWithZone, YearMonthDuration)DateWithZone.Add Method (DateWithZone, YearMonthDuration)DateWithZone::Add Method (DateWithZone, YearMonthDuration)
Adds a YearMonthDurationYearMonthDurationYearMonthDuration to a DateWithZoneDateWithZoneDateWithZone.
Syntax
Public Shared Function Add( _ date As DateWithZone, _ duration As YearMonthDuration _ ) As DateWithZone
public static DateWithZone Add( DateWithZone date, YearMonthDuration duration )
public: static DateWithZone Add( DateWithZone date, YearMonthDuration duration )
Parameters
Return Value
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
A DateWithZoneDateWithZoneDateWithZone that is the sum of duration and date.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | The sum of duration and date is less than MinValueMinValueMinValue or greater than MaxValueMaxValueMaxValue. |