DateTimeDateFormatter FormatDateWithoutMillis 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

C#
VB
C++
F#
Copy

    protected override void FormatDateWithoutMillis(
    	DateTime dateToFormat,
    	StringBuilder buffer
    )

    Protected Overrides Sub FormatDateWithoutMillis (
    	dateToFormat As DateTime,
    	buffer As StringBuilder
    )

    protected:
    virtual void FormatDateWithoutMillis(
    	DateTime dateToFormat,
    	StringBuilder^ buffer
    ) override

    abstract FormatDateWithoutMillis :
            dateToFormat : DateTime *
            buffer : StringBuilder -> unit
    override FormatDateWithoutMillis :
            dateToFormat : DateTime *
            buffer : StringBuilder -> unit

#### Parameters

dateToFormat
  Type: System
  DateTime
  The date to format.
buffer
  Type: System.Text
  StringBuilder
  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

#### Reference

DateTimeDateFormatter Class
log4net.DateFormatter Namespace