DateWithZone.Subtract Method (DateWithZone, DayTimeDuration)DateWithZone.Subtract Method (DateWithZone, DayTimeDuration)DateWithZone::Subtract Method (DateWithZone, DayTimeDuration)
            Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a DateWithZoneDateWithZoneDateWithZone.
            
Syntax
Public Shared Function Subtract( _ date As DateWithZone, _ duration As DayTimeDuration _ ) As DateWithZone
public static DateWithZone Subtract( DateWithZone date, DayTimeDuration duration )
public: static DateWithZone Subtract( DateWithZone date, DayTimeDuration duration )
Parameters
- date
 Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The DateWithZoneDateWithZoneDateWithZone to subtract from.
- duration
 Type: XmlPrime.DayTimeDurationXmlPrime.DayTimeDurationXmlPrime::DayTimeDuration
The DayTimeDurationDayTimeDurationDayTimeDuration to subtract.
Return Value
Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone
The DateWithZoneDateWithZoneDateWithZone that is the result of subtracting duration from date.
Exceptions
| Exception | Condition | 
| OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. | 
