Share via


ToDate Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts a string to a DateTime value.

Namespace:  Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

Syntax

'Declaration
Public Shared Function ToDate ( _
    Value As String _
) As DateTime
public static DateTime ToDate(
    string Value
)
public:
static DateTime ToDate(
    String^ Value
)
static member ToDate : 
        Value:string -> DateTime 
public static function ToDate(
    Value : String
) : DateTime

Parameters

Return Value

Type: System. . :: . .DateTime
The DateTime value of the string.

.NET Framework Security

See Also

Reference

Conversions Class

ToDate Overload

Microsoft.VisualBasic.CompilerServices Namespace