ImapUtilsGetImapDateString Method
Returns the string containing the current date of the local computer 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 GetImapDateString()

Return Value

Type: String
The string containing the current date of the local computer in the IMAP4 format.
Remarks
This method can be used to build "search by today's date" expressions when using Search(Boolean, String, String) or BeginSearch(Boolean, String, String, AsyncCallback, Object) methods. The IMAP4 protocol allows the client to search messages only by dates, not by exact datetime values.
Examples
This sample prints the current date of the local computer as IMAP4-formatted string.
using System;

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