C-DEngine 5.105

TheCommonUtils..::..CDate Method (String)

Converts a string to a date.

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

Syntax


public static DateTimeOffset CDate(
	string strIn
)
Public Shared Function CDate ( _
	strIn As String _
) As DateTimeOffset
public:
static DateTimeOffset^ CDate(
	String^ strIn
)

Parameters

strIn
Type: String

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.