Formats the date using [M:DateTime.ToString(string, IFormatProvider)].
Namespace: log4net.DateFormatterAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- dateToFormat
- Type: System DateTime
The date to convert to a string.
- writer
- Type: System.IO TextWriter
The writer to write to.
Implements
IDateFormatter FormatDate(DateTime, TextWriter)Remarks
Uses the date format string supplied to the constructor to call the [M:DateTime.ToString(string, IFormatProvider)] method to format the date.
See Also