.NET Framework Class Library
DateTime.TryParse Method

Converts the specified string representation of a date and time to its DateTime equivalent.

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

Tags :


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.
Tags : datetime

Page view tracker