Class IsoDateTimeConverter
Denotes a type converter that converts date time to string in iso format
public class IsoDateTimeConverter : DateTimeConverter
- Inheritance
-
IsoDateTimeConverter
- Inherited Members
Methods
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Converts the given value object to a DateTime using the arguments.
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
context
ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
culture
CultureInfoAn optional CultureInfo. If not supplied, the current culture is assumed.
value
objectThe object to convert.
destinationType
TypeThe Type to convert the value to.
Returns
Exceptions
- NotSupportedException
The conversion cannot be performed.