cDateTimeStatic: TryParse

TryParse

Attempts to parse a string representation of a date into a cDateTime object.



 Public Function TryParse(
	  ByRef s As String,
	  ByRef Result As cDateTime ) As Boolean

Parameters

s
[ByRef] String. The date string to be parsed.
Result
[ByRef] cDateTime. The parameter to place the parsed date into.

Return Values

Boolean -  A boolean indicating if the date was successfully parsed.

Remarks

This method will not throw an exception if the string cannot be parsed.

See Also

Project VBCorLib Overview Class cDateTimeStatic Overview cDateTimeStatic Properties cDateTimeStatic Methods Today UtcNow