संपादित करें

इसके माध्यम से साझा किया गया


DateType.FromString Method

Definition

Returns a Date value that corresponds to the specified string and optional culture information.

Overloads

FromString(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a Date value that corresponds to the specified string.

FromString(String, CultureInfo)

This API supports the product infrastructure and is not intended to be used directly from your code.

Returns a Date value that corresponds to the specified string and culture information.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

FromString(String)

Source:
DateType.vb
Source:
DateType.vb
Source:
DateType.vb

Returns a Date value that corresponds to the specified string.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

Value
String

Required. String to convert to a Date value.

Returns

The Date value that corresponds to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to

FromString(String, CultureInfo)

Source:
DateType.vb
Source:
DateType.vb
Source:
DateType.vb

Returns a Date value that corresponds to the specified string and culture information.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static DateTime FromString(System::String ^ Value, System::Globalization::CultureInfo ^ culture);
public static DateTime FromString (string? Value, System.Globalization.CultureInfo? culture);
public static DateTime FromString (string Value, System.Globalization.CultureInfo culture);
static member FromString : string * System.Globalization.CultureInfo -> DateTime
Public Shared Function FromString (Value As String, culture As CultureInfo) As DateTime
Public Function FromString (Value As String, culture As CultureInfo) As DateTime

Parameters

Value
String

Required. String to convert to a Date value.

culture
CultureInfo

Required. A CultureInfo object that defines how date values are formatted and displayed, depending on the culture.

Returns

The Date value that corresponds to Value.

Remarks

This class supports the Visual Basic compiler and is not intended to be used directly from your code.

Applies to