Re: Search an Outlook appointment
- From: Frank Quinty <FrankQuinty@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 27 Mar 2006 13:52:02 -0800
That's it. I can convert my datetime to a string, depending on the local
systemtime using :
GetDateFormat(NULL, DATE_SHORTDATE, &st, NULL, strDate, 250);
Then I can make my search string using the strDate.
If anyone has the same problem, I can help.
Regards,
"Frank Quinty" wrote:
Thanks for your answer..
But the application is written in C++. CStr does not exists.
And my problem is to convert datetime to a string : the string must be
03/27/2006 for an english user using datetime like mm/dd/yyyy and the string
must be 27/03/2006 for a french user using datetime like dd/mm/yyyy .
How can I get the right datetime format of the user for making the search?
Or how can I make a search with the long value of the datetime. (this
solution runs fine with POOM on a Pocket PC : [Start] >= <38803.7082)?
Regards,
"Dmitry Streblechenko" wrote:
You can use CStr function to convert datetime to a string:
dtStart = #03/27/2006#
strSearch = "[Start] >= " & CStr(dtStart)
To create restrictions in Redemption, use the MAPITable object.See
http://www.dimastr.com/redemption/mapitable.htm#resand for an example that
restricts messages on a range of dates.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Frank Quinty" <FrankQuinty@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D04070F0-DD4B-4288-AF90-D38917714A81@xxxxxxxxxxxxxxxx
Hi,
I need to search for Outlook appointements from date to date. But I do not
know the date format of the client.
_AppointmentItemPtr pAppointment;
pAppointment=pItems->Find(CSSearch);
It runs fine if the search is : [Start] >= '03/27/2006' for an english
client using 'mm/dd/yyyy' as date format.
But it must be : [Start] >= '27/03/2006' for a french client using date
format like 'dd/mm/yyyy'.
How could I get the customer date format?
Or how could I make a search using the long value of the date?
It runs fine with POOM on Pocket PC with search like : [Start] >=
<38803.7082. But this search does not run with Outlook.
Any idea?
Regards,
PS : I also using Outlook Redemption. Is there a search solution for
Outlook
appointments inside?
- References:
- Re: Search an Outlook appointment
- From: Dmitry Streblechenko
- Re: Search an Outlook appointment
- From: Frank Quinty
- Re: Search an Outlook appointment
- Prev by Date: Re: Search an Outlook appointment
- Next by Date: Re: Search an Outlook appointment
- Previous by thread: Re: Search an Outlook appointment
- Next by thread: Re: Search an Outlook appointment
- Index(es):
Relevant Pages
|