ConversionToDateTime(Object) Method

Return a value converted to DateTime, with no exception thrown in the case that the specified value is not valid.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static DateTime ToDateTime(
	Object value
)

Parameters

value  Object
Value to convert to a DateTime.

Return Value

DateTime
If the caller's value was valid, a DateTime representation of that value. Otherwise, DateTime.MinValue.

See Also