DateTimeWithZone.Subtraction Operator (DateTimeWithZone, YearMonthDuration)DateTimeWithZone.Subtraction Operator (DateTimeWithZone, YearMonthDuration)DateTimeWithZone::Subtraction Operator (DateTimeWithZone, YearMonthDuration)

Syntax

Public Shared Operator -( _
    dateTime As DateTimeWithZone, _
    duration As YearMonthDuration _
) As DateTimeWithZone
public static DateTimeWithZone operator -(
    DateTimeWithZone dateTime,
    YearMonthDuration duration
)
public:
static DateTimeWithZone operator -(
    DateTimeWithZone dateTime, 
    YearMonthDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.