ImapUtilsGetImapDateTimeString Method (DateTime)
Returns the string containing the specified local date and time value in the IMAP4 format.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public static string GetImapDateTimeString(
	DateTime dt
)

Parameters

dt
Type: SystemDateTime
The date and time in the timezone of the local computer.

Return Value

Type: String
The IMAP4 datetime string in "dd-MMM-yyyy HH:mm:ss +/-HHmm" format.
Examples
This sample prints the current datetime of the local computer as IMAP4-formatted string.
using System;

class Sample
{
    static void Main(string[] args)
    {
        Console.WriteLine(
            MailBee.ImapMail.ImapUtils.GetImapDateTimeString(DateTime.Now));
    }
}
See Also