Table of Contents

Class DateTimeExtensions

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

Extension methods for the DateTime struct.

public static class DateTimeExtensions
Inheritance
DateTimeExtensions

Methods

ToString(DateTime, XmlDateTimeSerializationMode)

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

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

Parameters

value DateTime

The DateTime value to convert.

serializationMode XmlDateTimeSerializationMode

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

Returns

String

A String equivalent of the DateTime value.