ImapUtilsGetImapDateString Method (DateTime) |
Returns the string containing the specified date value in the IMAP4 format.
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public static string GetImapDateString(
DateTime dt
)
Public Shared Function GetImapDateString (
dt As DateTime
) As String
Parameters
- dt
- Type: SystemDateTime
The date and time value to return the date for.
Return Value
Type:
StringThe IMAP4 date string in "dd-MMM-yyyy" format.
Remarks 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(DateTime.Now));
}
}
Imports System
Module Sample
Sub Main(ByVal args As String())
Console.WriteLine( _
MailBee.ImapMail.ImapUtils.GetImapDateString(DateTime.Now))
End Sub
End Module
See Also