DateWithZone.Add Method (YearMonthDuration, DateWithZone)DateWithZone.Add Method (YearMonthDuration, DateWithZone)DateWithZone::Add Method (YearMonthDuration, DateWithZone)
Adds a YearMonthDurationYearMonthDurationYearMonthDuration to a DateWithZoneDateWithZoneDateWithZone.
Syntax
Public Shared Function Add( _ duration As YearMonthDuration, _ date As DateWithZone _ ) As DateWithZone
public static DateWithZone Add( YearMonthDuration duration, DateWithZone date )
public: static DateWithZone Add( YearMonthDuration duration, DateWithZone date )
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. |