A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Convert Date given by outlook api to java date



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 26th 06, 03:24 PM posted to microsoft.public.outlook
amit deshpande
external usenet poster
 
Posts: 3
Default Convert Date given by outlook api to java date


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

Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date: Today Date: Yesterday etc. katie Outlook - General Queries 1 June 19th 06 04:10 AM
Inbox - Sort - Date: Today Date: Yesterday Jan Groshan Outlook - General Queries 2 April 24th 06 09:23 PM
Outlook should let me go-to a date 3 weeks from a specified date. exito816 Outlook - Calandaring 1 April 13th 06 03:18 PM
date fields - link the calander pop-up to a custom date field Tom Outlook - Using Forms 0 January 23rd 06 09:13 PM
Exporting Date received and Date Sent to Access Sugarthebeet Outlook - General Queries 1 January 19th 06 08:06 PM


All times are GMT +1. The time now is 11:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.