Date UtilsFormat Date Method
Format the DateTimeOffset as an rfc822 date string.
Definition
Namespace: MimeKit.Utils
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The formatted string.
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
StringThe formatted string.
Remarks
Formats the date and time in the format specified by rfc822, suitable for use
in the Date header of MIME messages.