Class DateTimeExtensions
- Namespace
- Cuemon.Extensions.Xml
- Assembly
- Cuemon.Extensions.Xml.dll
Extension methods for the System.DateTime struct.
public static class DateTimeExtensions
- Inheritance
-
ObjectDateTimeExtensions
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
DateTimeThe System.DateTime value to convert.
serializationMode
XmlDateTimeSerializationModeOne 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
.