SystemDiagnosticsTraceWriter.FormatDateTime Method

Formats a DateTime for the trace.

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http.Tracing (in System.Web.Http.Tracing.dll)

'Declaration
Public Overridable Function FormatDateTime ( _
	dateTime As DateTime _
) As String
'Usage
Dim instance As SystemDiagnosticsTraceWriter 
Dim dateTime As DateTime 
Dim returnValue As String 

returnValue = instance.FormatDateTime(dateTime)

Parameters

dateTime
Type: System.DateTime
The DateTime

Return Value

Type: System.String
The DateTime formatted as a string

The default implementation uses the ISO 8601 convention for round-trippable dates so they can be parsed.

Show: