NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DateTime.ToDateTime

Converts this instance to a DateTime value

[Visual Basic]
Overridable Public Function ToDateTime() As DateTime
[C#]
public virtual DateTime ToDateTime();
[C++]
public: virtual DateTime ToDateTime();
[JScript]
public function ToDateTime() : DateTime;

Return Value

The DateTime value for this instance.

Exceptions

Exception Type Condition
InvalidCastException If this DateTime is not a DateTime.

Remarks

The ToDateTime method casts this DateTime instance into another DateTime value. An exception is thrown if the current instance of DateTime cannot be coerced into a DateTime.

See Also

DateTime Structure | DateTime Members | System Namespace