.NET Framework Class Library
DateTime.TryParse Method
Converts the specified string representation of a date and time to its DateTime equivalent.
DateTime Members
System Namespace
Parse
String
ParseExact
CultureInfo
CurrentInfo
Overload List
| Name | Description |
|---|---|
| DateTime.TryParse (String, DateTime) | Converts the specified string representation of a date and time to its DateTime equivalent. |
| DateTime.TryParse (String, IFormatProvider, DateTimeStyles, DateTime) | Converts the specified string representation of a date and time to its DateTime equivalent using the specified culture-specific format information and formatting style. |
See Also
Reference
DateTime StructureDateTime Members
System Namespace
Parse
String
ParseExact
CultureInfo
CurrentInfo
Other Resources
Formatting Overview
Community Content
dirq
Fail = DateTime.MinValue
When this method returns, contains the System.DateTime value equivalent to the date and time contained in s, if the conversion succeeded, or System.DateTime.MinValue if the conversion failed. The conversion fails if the s parameter is null, or does not contain a valid string representation of a date and time. This parameter is passed uninitialized.