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

Syntax

Public Shared Function Subtract( _
    date1 As DateWithZone, _
    date2 As DateWithZone, _
    implicitTimeZone As TimeZone _
) As DayTimeDuration
public static DayTimeDuration Subtract(
    DateWithZone date1,
    DateWithZone date2,
    TimeZone implicitTimeZone
)
public:
static DayTimeDuration Subtract(
    DateWithZone date1, 
    DateWithZone date2, 
    TimeZone implicitTimeZone
)
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.