Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

SimpleDateFormatter.FormatDate�Method�

Formats the date using ToString.

[Visual�Basic]
Overridable�Public�Sub�FormatDate( _
���ByVal dateToFormat�As�Date,�_
���ByVal writer�As�TextWriter�_
)�_
����Implements�IDateFormatter.FormatDate
[C#]
public�virtual�void�FormatDate(
���DateTimedateToFormat,
���TextWriterwriter
);

Parameters

dateToFormat
The date to convert to a string.
writer
The writer to write to.

Implements

IDateFormatter.FormatDate

Remarks

Uses the date format string supplied to the constructor to call the ToString method to format the date.

See Also

SimpleDateFormatter Class | log4net.DateFormatter Namespace