DateType.FromString Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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  | 
| FromString(String, CultureInfo) | This API supports the product infrastructure and is not intended to be used directly from your code. Returns a  | 
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
- 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 -> DateTimePublic Shared Function FromString (Value As String) As DateTimePublic Function FromString (Value As String) As DateTimeParameters
- 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
- 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 -> DateTimePublic Shared Function FromString (Value As String, culture As CultureInfo) As DateTimePublic Function FromString (Value As String, culture As CultureInfo) As DateTimeParameters
- 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.