IDateFormatter Interface | Apache log4net™ SDK Documentation

Render a DateTime as a string.

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

C#
VB
C++
F#
Copy

    public interface IDateFormatter

    Public Interface IDateFormatter

    public interface class IDateFormatter

    type IDateFormatter =  interface end

The IDateFormatter type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| FormatDate | Formats the specified date as a string.

Top
Remarks

Interface to abstract the rendering of a DateTime instance into a string.

The FormatDate(DateTime, TextWriter) method is used to render the date to a text writer.

See Also

#### Reference

log4net.DateFormatter Namespace