Convertion ToDateTime Method (Object, String, String, 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,
	string dateSeparator,
	string timeSeparator,
	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.
dateSeparator
Type: System String
The string that separates the components of a date, that is, the year, month, and day.
timeSeparator
Type: System String
The string that separates the components of time, that is, the hour, minutes, and seconds.
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