NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlString.FromDateTime

Converts a date and time value to a string.

[Visual Basic]
Public Shared Function FromDateTime( _
   ByVal value As DateTime _
) As String
[C#]
public static string FromDateTime(
   DateTime value
);
[C++]
public: static String* FromDateTime(
   DateTime value
);
[JScript]
public static function FromDateTime(
   value : DateTime
) : String;

Parameters

value
The date and time value to convert.

Return Value

A string of the form YYYY-MM-DDThh:mm:ss.sssssss, where YYYY is the year (0001-9999), MM is the month (01-12), DD is the day (01-31), T is the literal character "T", hh is the hour (00-23), mm is the minute (00-59), and ss.sssssss is the second (00-59), followed, if required, by a decimal point and a fractional part of up to seven digits.

See Also

XmlString Class | XmlString Members | System.Xml Namespace | ToDateTime