Table of Contents

Class IsoDateTimeConverter

Namespace
NMF.Models
Assembly
NMF.Models.dll

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 ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

culture CultureInfo

An optional CultureInfo. If not supplied, the current culture is assumed.

value object

The object to convert.

destinationType Type

The Type to convert the value to.

Returns

object

An object that represents the converted value.

Exceptions

NotSupportedException

The conversion cannot be performed.