DateTimeWithZone Constructor (DateTime, TimeZone)DateTimeWithZone Constructor (Date, TimeZone)DateTimeWithZone Constructor (DateTime, TimeZone^)

Initializes a new instance of the DateTimeWithZoneDateTimeWithZoneDateTimeWithZone structure with the specified DateTimeDateDateTime and TimeZoneTimeZoneTimeZone.

Syntax

Public Sub New ( _
    dateTime As Date, _
    timeZone As TimeZone _
)
public DateTimeWithZone(
    DateTime dateTime,
    TimeZone timeZone
)
public:
DateTimeWithZone(
    DateTime dateTime, 
    TimeZone^ timeZone
)
 

Parameters

dateTime

Type: System.DateTimeSystem.DateTimeSystem::DateTime

The date and time.

timeZone

Type: System.TimeZoneSystem.TimeZoneSystem::TimeZone^

The time zone.