Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: bool Try(object, out DateTime)

Declaration

public static bool Try(
    object value,
    out DateTime result
)

Summary

Converts the specified object to a DateTime. Returns true if successful, or false if the object cannot be converted exactly. result is set to the type's default value if the conversion is unsuccessful. When converting from string, supports a subset of the ISO 8601 formats - for more details see DateTimeExtensions.TryParseIso(string, out DateTime).