DateTimeWithZone.Subtract Method (DateTimeWithZone, YearMonthDuration)DateTimeWithZone.Subtract Method (DateTimeWithZone, YearMonthDuration)DateTimeWithZone::Subtract Method (DateTimeWithZone, YearMonthDuration)

Syntax

Public Shared Function Subtract( _
    dateTime As DateTimeWithZone, _
    duration As YearMonthDuration _
) As DateTimeWithZone
public static DateTimeWithZone Subtract(
    DateTimeWithZone dateTime,
    YearMonthDuration duration
)
public:
static DateTimeWithZone Subtract(
    DateTimeWithZone dateTime, 
    YearMonthDuration duration
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.