Iso8601DateFormatterFormatDateWithoutMillis Method Apache log4net™ SDK Documentation
Formats the date without the milliseconds part

Namespace: log4net.DateFormatter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

protected override void FormatDateWithoutMillis(
	DateTime dateToFormat,
	StringBuilder buffer
)

Parameters

dateToFormat
Type: SystemDateTime
The date to format.
buffer
Type: System.TextStringBuilder
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

Reference