![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
_ApplicationPtr pApp("Outlook.Application");
_NameSpacePtr pNameSpace = pApp-GetNamespace(L"MAPI"); MAPIFolderPtr pOutbox = pNameSpace-GetDefaultFolder(olFolderInbox); _ItemsPtr pOutboxItems = pOutbox-Items; _MailItemPtr pNewMail=pItems-GetFirst(); DATE date = pNewMail-GetReceivedTime(); i want read the receivedTime, i get the val is DATE type. but i don't know how to change the val to time. like 2006-04-11 22:26 DATE type is double type, please help me! -- 只要决心成功,失败永远不会把我击垮! |
Ads |
#2
|
|||
|
|||
![]()
You can use the VBA Format function with some named formatting arguments:
Debug.Print Format(Date & " " & Time, "HH:MM") -- Eric Legault (Outlook MVP, MCDBA, MCTS: Messaging & Collaboration) Try Picture Attachments Wizard for Outlook: http://www.collaborativeinnovations.ca Blog: http://blogs.officezealot.com/legault/ "StupidDog" wrote: _ApplicationPtr pApp("Outlook.Application"); _NameSpacePtr pNameSpace = pApp-GetNamespace(L"MAPI"); MAPIFolderPtr pOutbox = pNameSpace-GetDefaultFolder(olFolderInbox); _ItemsPtr pOutboxItems = pOutbox-Items; _MailItemPtr pNewMail=pItems-GetFirst(); DATE date = pNewMail-GetReceivedTime(); i want read the receivedTime, i get the val is DATE type. but i don't know how to change the val to time. like 2006-04-11 22:26 DATE type is double type, please help me! -- 只要决心成功,失败永远不会把我击垮! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to check an Outlook mail's *edit mode*? | N More | Outlook and VBA | 2 | March 9th 06 08:44 PM |