Convert: ToDateTime

ToDateTime

Converts the value of the specified object to a CorDateTime object, using the specified culture-specific formatting information.



 Public Function ToDateTime(
	  ByRef Value As Variant,
	  Optional ByVal Provider As IFormatProvider ) As CorDateTime

Parameters

Value
[ByRef] Variant. Value to be converted.
Provider
[ByVal] Optional. IFormatProvider. An object that supplies culture-specific formatting information.

Return Values

CorDateTime -  The date and time equivalent of the value of value, or the date and time equivalent of CorDateTime.MinValue if value is Nothing.

See Also

Project CorLib Overview

Class Convert Overview