Table of Contents

Class DateTimeExtensions

Namespace
Cuemon.Extensions.Xml
Assembly
Cuemon.Extensions.Xml.dll

Extension methods for the System.DateTime struct.

public static class DateTimeExtensions
Inheritance
Object
DateTimeExtensions

Methods

ToString(DateTime, XmlDateTimeSerializationMode)

Converts the specified value to a System.String using the serializationMode specified.

public static string ToString(this DateTime value, XmlDateTimeSerializationMode serializationMode)

Parameters

value DateTime

The System.DateTime value to convert.

serializationMode XmlDateTimeSerializationMode

One of the System.Xml.XmlDateTimeSerializationMode values that specify how to treat the System.DateTime value.

Returns

String

A System.String equivalent of the System.DateTime value.