Click or drag to resize
MimeKit

DateUtilsFormatDate Method

Format the DateTimeOffset as an rfc822 date string.

Namespace: MimeKit.Utils
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static string FormatDate(
	DateTimeOffset date
)

Parameters

date  DateTimeOffset
The date.

Return Value

String
The formatted string.
Remarks
Formats the date and time in the format specified by rfc822, suitable for use in the Date header of MIME messages.
See Also