Creates an IMAP4 date and time string.
System.DateTime instance
with the desired date and time. A string that contains the date and time in IMAP4 format.
You may use this utility method to create an IMAP4 date and time string.
IMAP4 uses this date and time format for the INTERNALDATE message attribute. The format of the IMAP4 date and time string is dd-mmm-YYYY HH:MM:SS ZZZZZ.
Example: 3-May-2004 12:22:04 -0500
You may use the static method FromDateString to parse an IMAP4 date and time string.
Imap4Utility Class | Hunny.Mail Namespace