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

Syntax

Public Shared Function Subtract( _
    date As DateWithZone, _
    duration As DayTimeDuration _
) As DateWithZone
public static DateWithZone Subtract(
    DateWithZone date,
    DayTimeDuration duration
)
public:
static DateWithZone Subtract(
    DateWithZone date, 
    DayTimeDuration duration
)
 

Return Value

Type: XmlPrime.DateWithZoneXmlPrime.DateWithZoneXmlPrime::DateWithZone

The DateWithZoneDateWithZoneDateWithZone that is the result of subtracting duration from date.

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.