Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

IDateFormatter.FormatDate�Method�

Formats the specified date as a string.

[Visual�Basic]
Sub�FormatDate( _
���ByVal dateToFormat�As�Date,�_
���ByVal writer�As�TextWriter�_
)
[C#]
void�FormatDate(
���DateTimedateToFormat,
���TextWriterwriter
);

Parameters

dateToFormat
The date to format.
writer
The writer to write to.

Remarks

Format the DateTime as a string and write it to the TextWriter provided.

See Also

IDateFormatter Interface | log4net.DateFormatter Namespace