SimpleDateFormatter Constructor | Apache log4net™ SDK Documentation

Constructor

Namespace: log4net.DateFormatter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public SimpleDateFormatter(
    	string format
    )

    Public Sub New (
    	format As String
    )

    public:
    SimpleDateFormatter(
    	String^ format
    )

    new :
            format : string -> SimpleDateFormatter

#### Parameters

format
  Type: System
  String
  The format string.

Remarks

Initializes a new instance of the SimpleDateFormatter class with the specified format string.

The format string must be compatible with the options that can be supplied to [M:DateTime.ToString(string, IFormatProvider)].

See Also

#### Reference

SimpleDateFormatter Class
log4net.DateFormatter Namespace