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

Syntax

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

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.