EmailMessage.Date Property

The Date property gets or sets the date and time that the message is sent.

Namespace: Microsoft.Exchange.Data.Transport.Email
Assembly: Microsoft.Exchange.Data.Transport (in microsoft.exchange.data.transport.dll)

Syntax

'Declaration
Public Property Date As DateTime
public DateTime Date { get; set; }
public:
property DateTime Date {
    DateTime get ();
    void set (DateTime value);
}
/** @property */
public DateTime get_Date ()

/** @property */
public void set_Date (DateTime value)
public function get Date () : DateTime

public function set Date (value : DateTime)

Property Value

The Date property returns a coordinated universal time (UTC) DateTime value.

Remarks

Setting the Date property of a Multipurpose Internet Mail Extensions (MIME) message to a value of DateTime.MinValue removes the header from the message. When the value of the Date property is set, the EmailMessage object determines the time zone to be either current or UTC, depending on the DateTimeKind of the value.

Note

When you set the value of the Date property by using an instance of the DateTime structure that does not specify DateTimeKind, the Date property assumes that the DateTime instance represents local time.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003