MailBee.NET Objects 4.0

ImapUtils.GetImapDateTimeString Method ()

Returns the string containing the current date and time of the local computer in the IMAP4 format.

public static string GetImapDateTimeString();

Return Value

The current date and time of the local computer as string in "dd-MMM-yyyy HH:mm:ss +/-HHmm" format.

Example

This sample prints the current datetime of the local computer as IMAP4-formatted string.

[C#]
using System;

class Sample
{
    static void Main(string[] args)
    {
        Console.WriteLine(MailBee.ImapMail.ImapUtils.GetImapDateTimeString());
    }
}
[Visual Basic]
Imports System

Module Sample
    Sub Main(ByVal args As String())
        Console.WriteLine(MailBee.ImapMail.ImapUtils.GetImapDateTimeString())
    End Sub
End Module

See Also

ImapUtils Class | MailBee.ImapMail Namespace | ImapUtils.GetImapDateTimeString Overload List