DateWithZone.Subtraction Operator (DateWithZone, DayTimeDuration)DateWithZone.Subtraction Operator (DateWithZone, DayTimeDuration)DateWithZone::Subtraction Operator (DateWithZone, DayTimeDuration)

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
)
 

Return Value

Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone

The result of subtracting duration from date.

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.