Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DateTimeDateFormatter.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(
���DateTimedateToFormat,
���StringBuilderbuffer
);

Parameters

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

Remarks

Formats a DateTime in the format "dd MMM yyyy HH:mm:ss" for example, "06 Nov 1994 15:49:37".

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

See Also

DateTimeDateFormatter Class | log4net.DateFormatter Namespace