DateTimeWithZone.ToDateTime MethodDateTimeWithZone.ToDateTime MethodDateTimeWithZone::ToDateTime Method

Returns the value as a DateTimeDateDateTime instance.

Syntax

Public Function ToDateTime() As Date
public DateTime ToDateTime()
public:
DateTime ToDateTime()
 

Exceptions

ExceptionCondition
OverflowExceptionOverflowExceptionOverflowExceptionAn overflow error occurred.

Remarks

The value returned is with the time zone stripped. To obtain the value in a specific time zone, then first use the AdjustToTimeZoneAdjustToTimeZoneAdjustToTimeZone function.