Table of Contents

Class UtcDateTimeConverter

Namespace
DevExpress.Xpo.Metadata
Assembly
DevExpress.Xpo.v24.1.dll

Represents a converter which can be used to convert DateTime objects from the local time to the current coordinated universal time (UTC).

public class UtcDateTimeConverter : ValueConverter
Inheritance
UtcDateTimeConverter
Inherited Members

Constructors

UtcDateTimeConverter()

Initializes a new instance of the UtcDateTimeConverter class.

public UtcDateTimeConverter()

Properties

StorageType

Gets the type that the property’s value will be converted to when it’s saved in a data store.

public override Type StorageType { get; }

Property Value

Type

A Type which represents the type that the property’s value will be converted to when it’s saved in a data store.

Methods

ConvertFromStorageType(object)

Converts the stored value from the current coordinated universal time (UTC) to local time.

public override object ConvertFromStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value. null (Nothing in Visual Basic) if the specified value is a null reference.

ConvertToStorageType(object)

Converts the persistent property’s value from the current local time to coordinated universal time (UTC). The converted value is stored in the data store.

public override object ConvertToStorageType(object value)

Parameters

value object

An object which represents the value to convert.

Returns

object

An object which represents the converted value. null (Nothing in Visual Basic) if the specified value is a null reference.