DateTimeTypeConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Silverlight

Converts a DateTime with the specified culture to the specified object with the specified format context.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

public override Object ConvertTo(
	ITypeDescriptorContext context,
	CultureInfo culture,
	Object value,
	Type destinationType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
The format context that is used to convert to the specified type.
culture
Type: System.Globalization.CultureInfo
The culture to use for the converting date.
value
Type: System.Object
The date to convert.
destinationType
Type: System.Type
The type to convert to.

Return Value

Type: System.Object
An object of the specified type that represents value.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: