Επεξεργασία

Κοινή χρήση μέσω


Conversions.ToDate Method

Definition

Converts specified object to a DateTime value.

Overloads

ToDate(Object)

Converts an object to a DateTime value.

ToDate(String)

Converts a string to a DateTime value.

ToDate(Object)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts an object to a DateTime value.

public:
 static DateTime ToDate(System::Object ^ Value);
public static DateTime ToDate (object Value);
public static DateTime ToDate (object? Value);
static member ToDate : obj -> DateTime
Public Shared Function ToDate (Value As Object) As DateTime

Parameters

Value
Object

The object to convert.

Returns

The DateTime value of the object.

Applies to

ToDate(String)

Source:
Conversions.vb
Source:
Conversions.vb
Source:
Conversions.vb

Converts a string to a DateTime value.

public:
 static DateTime ToDate(System::String ^ Value);
public static DateTime ToDate (string Value);
public static DateTime ToDate (string? Value);
static member ToDate : string -> DateTime
Public Shared Function ToDate (Value As String) As DateTime

Parameters

Value
String

The string to convert.

Returns

The DateTime value of the string.

Applies to