Parses an IMAP4 date and time string.
System.DateTime instance
with the parsed date and time. You may use this utility method to parse 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 ToDateString to create an IMAP4 date and time string.
| Exception Type | Condition |
|---|---|
| FormatException | The format is invalid. |
Imap4Utility Class | Hunny.Mail Namespace