DateTime::IConvertible::ToType Method (Type^, IFormatProvider^)
This API supports the product infrastructure and is not intended to be used directly from your code.
Converts the current DateTime object to an object of a specified type.
Assembly: mscorlib (in mscorlib.dll)
private: virtual Object^ ToType( Type^ type, IFormatProvider^ provider ) sealed = IConvertible::ToType
The desired type.
Return ValueType: System::Object^
An object of the type specified by the type parameter, with a value equivalent to the current DateTime object.
Available since 10
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0