C-DEngine 5.105

TheCommonUtils..::..CDate Method (Object)

Convert an object to a date.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static DateTimeOffset CDate(
	Object inObj
)
Public Shared Function CDate ( _
	inObj As Object _
) As DateTimeOffset
public:
static DateTimeOffset^ CDate(
	Object^ inObj
)

Parameters

inObj
Type: Object
Input to be converted.

Return Value

The converted value.

Remarks


A safe, efficient function to convert any input to DateTimeOffset. Safe means that no unhandled exceptions are generated. If the conversion is not possible, the function returns DateTimeOffset.MinValue.