PC Review


Reply
Thread Tools Rate Thread

Convert Date given by outlook api to java date

 
 
amit deshpande
Guest
Posts: n/a
 
      26th Jun 2006

hi ,
i have following code
_ContactItem contactItem;
COleException e;
OleInitialize (NULL);
_Application olApp;
MAPIFolder pFolder;
if (!olApp.CreateDispatch(_T("Outlook.Application"), &e))
{
CString strError;
strError.Format(_T("CreateDispatch() failed with error 0x%08lx"),
e.m_sc);
//AfxMessageBox(strError, MB_SETFOREGROUND);
OleUninitialize ();
return 0;
}
_NameSpace oNameSpace = olApp.GetNamespace(_T("MAPI"));
pFolder=oNameSpace.GetDefaultFolder(10);
_Items Items;
_Items pItems= pFolder.GetItems();
pContact = Items.GetFirst ();
long l = pContact.GetBirthday();//which i have to convert to long value
function returns double //value

i haven't understood the value that GetBirthDay() returns a double
value it is very small value 5 digits only
so it can't be no of miliseconds or seconds from 1970's

so does anybody know how to convert this double value to Ctime

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Date given by outlook api to java date amit deshpande Microsoft Outlook Discussion 0 26th Jun 2006 03:23 PM
How to convert normal date to Julian date upto milliseconds precision Rajat Microsoft C# .NET 2 21st Mar 2006 06:06 AM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 01:08 AM
How to Convert Days(Text field) into Date By giving the start date FA Microsoft Access Forms 3 2nd Dec 2005 08:26 PM
How to convert user-defined custom format date string to date value abcabcabc Microsoft VB .NET 1 19th Aug 2005 12:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:44 AM.