log4net SDK Reference

AbsoluteTimeDateFormatter.FormatDate Method 

Renders the date into a string. Format is "HH:mm:ss,fff".

[Visual Basic]
Overridable Public Sub FormatDate( _
   ByVal dateToFormat As Date, _
   ByVal writer As TextWriter _
) _
    Implements IDateFormatter.FormatDate
[C#]
public virtual void FormatDate(
   DateTime dateToFormat,
   TextWriter writer
);

Parameters

dateToFormat
The date to render into a string.
writer
The writer to write to.

Implements

IDateFormatter.FormatDate

Remarks

Uses the FormatDateWithoutMillis method to generate the time string up to the seconds and then appends the current milliseconds. The results from FormatDateWithoutMillis are cached and FormatDateWithoutMillis is called at most once per second.

Sub classes should override FormatDateWithoutMillis rather than FormatDate.

See Also

AbsoluteTimeDateFormatter Class | log4net.DateFormatter Namespace