Converts a string to a DateTime structure.
- value
- The string to be converted. The string is in a form allowed by the DateTime.Parse(string)(string) method.
value as a DateTime.
Type Reason ArgumentException value is a null reference. FormatException value cannot be converted to a DateTime .
This method parses value using the information in a System.Globalization.DateTimeFormatInfo instance initialized for the current system culture.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0