log4net SDK Reference

Iso8601DateFormatter.FormatDateWithoutMillis Method 

Formats the date without the milliseconds part

[Visual Basic]
Overrides Protected Sub FormatDateWithoutMillis( _
   ByVal dateToFormat As Date, _
   ByVal buffer As StringBuilder _
)
[C#]
protected override void FormatDateWithoutMillis(
   DateTime dateToFormat,
   StringBuilder buffer
);

Parameters

dateToFormat
The date to format.
buffer
The string builder to write to.

Remarks

Formats the date specified as a string: "yyyy-MM-dd HH:mm:ss".

The base class will append the ",fff" milliseconds section. This method will only be called at most once per second.

See Also

Iso8601DateFormatter Class | log4net.DateFormatter Namespace