DateUtilsFormatDate Method

Format the DateTimeOffset as an rfc822 date string.

Definition

Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
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