Class SimpleDateFormatter
- Namespace
- log4net.DateFormatter
- Assembly
- log4net.dll
Formats the DateTime using the
public class SimpleDateFormatter : IDateFormatter
- Inheritance
-
SimpleDateFormatter
- Implements
- Inherited Members
Remarks
Constructors
SimpleDateFormatter(string)
Constructor
public SimpleDateFormatter(string format)
Parameters
formatstringThe format string.
Remarks
Initializes a new instance of the SimpleDateFormatter class with the specified format string.
The format string must be compatible with the options
that can be supplied to
Methods
FormatDate(DateTime, TextWriter)
Formats the date using
public virtual void FormatDate(DateTime dateToFormat, TextWriter writer)
Parameters
dateToFormatDateTimeThe date to convert to a string.
writerTextWriterThe writer to write to.
Remarks
Uses the date format string supplied to the constructor to call
the