DateTimeWithZone Constructor (DateWithZone, TimeWithZone)DateTimeWithZone Constructor (DateWithZone, TimeWithZone)DateTimeWithZone Constructor (DateWithZone, TimeWithZone)

Syntax

Public Sub New ( _
    date As DateWithZone, _
    time As TimeWithZone _
)
public DateTimeWithZone(
    DateWithZone date,
    TimeWithZone time
)
public:
DateTimeWithZone(
    DateWithZone date, 
    TimeWithZone time
)
 

Exceptions

ExceptionCondition
ArgumentExceptionArgumentExceptionArgumentExceptionThe time zones of date and time do not match.