Convertion ToDateTime Method (Object, String, Nullable DateTime )Nemiro.Convertion
Converts the value of the specified object to a DateTime object.

Namespace: Nemiro
Assembly: Nemiro.Convertion (in Nemiro.Convertion.dll) Version: 2.1.4.402 (2.1.4.402)
Syntax

public static Nullable<DateTime> ToDateTime(
	Object value,
	string formatDateTime,
	Nullable<DateTime> default
)

Parameters

value
Type: System Object
The value to convert.
formatDateTime
Type: System String
The format string for a date and time value.
default
Type: System Nullable DateTime 
The default value is to be returned in the case of conversion errors.

Return Value

Type: Nullable DateTime 
See Also