| Author |  | 
      
        | marco francisco Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          As I can get de date of mail with de format dd-mm-yyyy mm:hh:ss ??
           | Posted: 27 September 2005 at 4:34am | IP Logged |   |  
           | 
 |  
 I can get the date of mail with this format
 
 Mon, 26 Sep 2005 18:41:58 +0100
 
 thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          You can use Message.GetDateFromString method to convert mail date from string to DateTime value as is shown in the following example:
           | Posted: 27 September 2005 at 11:04am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | Dim Msg, dDateTime
 
 Set Msg = CreateObject("MailBee.Message")
 
 ' Get specified date in UTC
 dDateTime = Msg.GetDateFromString("Sat, 1 Nov 2003 11:32:37 -0500", False)
 
 ' Prints "11/01/2003 16:32:37" (if locale settings are in mm/dd/yyyy format)
 MsgBox dDateTime
 
 |  |  |  
 You can find more information regarding this method in MailBee documentation reference (Message.GetDateFromString method).
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |