log4net SDK Reference |

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

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