TimeReceived Property (CDONTS Message Object)

The TimeReceived property sets or returns the date and time the message was received as a vbDate variant data type. Read-only.

Syntax

objMessage.TimeReceived 
 

Data Type

Variant (vbDate format)

Remarks

If the time of reception is not available, the TimeReceived property returns the date and time the message was sent.

The TimeReceived and TimeSent properties set and return dates and times as the local time for the user's system.

Example

This code fragment displays the date and time a message was sent and received:

' from the sample function Message_TimeSentAndReceived 
' verify that objMessage is valid, then ... 
With objMessage 
   strMsg = "Message sent " & Format(.TimeSent, "Short Date") 
   strMsg = strMsg & ", " & Format(.TimeSent, "Long Time") 
   strMsg = strMsg & "; received " 
   strMsg = strMsg & Format(.TimeReceived, "Short Date") & ", " 
   strMsg = strMsg & Format(.TimeReceived, "Long Time") 
   MsgBox strMsg 
End With