log4net SDK Reference |

# 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(
DateTime dateToFormat,
TextWriter writer
);

#### 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