Returns the specified string converted to DateTime format.
[Visual Basic] Overridable Public Function ToDateTime() As DateTime [C#] public virtual DateTime ToDateTime(); [C++] public: virtual DateTime ToDateTime(); [JScript] public function ToDateTime() : DateTime;
The string formatted as a DateTime type.
The ToDateTime implementation is the same as Parse and ToDateTime (In addition information, see DateTime, Convert and Value.)