Converts the current DateTime object to an object of a specified type.
- targetType
- Documentation for this section has not yet been entered.
- provider
- An object that implements the IFormatProvider interface. (This parameter is not used; specify null.)
An object of the type specified by the type parameter, with a value equivalent to the current DateTime object.