DateWithZone.Subtraction Operator (DateWithZone, DayTimeDuration)DateWithZone.Subtraction Operator (DateWithZone, DayTimeDuration)DateWithZone::Subtraction Operator (DateWithZone, DayTimeDuration)
Subtracts a DayTimeDurationDayTimeDurationDayTimeDuration from a DateWithZoneDateWithZoneDateWithZone.
Syntax
Public Shared Operator -( _ date As DateWithZone, _ duration As DayTimeDuration _ ) As DateWithZone
public static DateWithZone operator -( DateWithZone date, DayTimeDuration duration )
public: static DateWithZone operator -( 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 result of subtracting duration from date.
Exceptions
Exception | Condition |
OverflowExceptionOverflowExceptionOverflowException | An overflow error occurred. |