[This is preliminary documentation and is subject to change.]

Parse a string to datetime format

Namespace:  OfficeClip.Utils
Assembly:  OfficeClip.Utils (in OfficeClip.Utils)
Version: 8.1.1.0

Syntax

C#
public static DateTime ToDate(
	string strDateTime,
	string format,
	bool isThorough
)
Visual Basic (Declaration)
Public Shared Function ToDate ( _
	strDateTime As String, _
	format As String, _
	isThorough As Boolean _
) As DateTime
Visual C++
public:
static DateTime ToDate(
	String^ strDateTime, 
	String^ format, 
	bool isThorough
)

Parameters

strDateTime
Type: System..::.String
The string to be converted
format
Type: System..::.String
The format of the string
isThorough
Type: System..::.Boolean
Do a thorough parse, in case the user made a mistake in the format string

Return Value

The datetime string

See Also