System::IConvertible::ToDateTime method

IConvertible::ToDateTime method

Converts the value of this instance to an equivalent System::DateTime using the specified culture-specific formatting information.

virtual System::DateTime System::IConvertible::ToDateTime(System::SharedPtr<System::IFormatProvider> provider)=0
ParameterTypeDescription
providerSystem::SharedPtr<System::IFormatProvider>A System::IFormatProvider interface implementation that supplies culture-specific formatting information.

ReturnValue

A System::DateTime instance equivalent to the value of this instance.

See Also