locked
EWS Api + Bad Task DueDate in Outlook RRS feed

  • Question

  • Hello, we are using EWS Managed API 1.1 to create Tasks. When the task is created it shows in Outlook 2010 bad DueDate (one additional day - when DueDate set to 21 it shows 22 in Outlook) but the DueDate is ok when the task shown in OWA. 

    How to solve this situation and what is the real problem?

    We are using Exchange Server 2007 SP1.

    Monday, May 21, 2012 5:59 AM

All replies

  • What does your code look like ? I would suggest you test what your doing with a Mapi editor like mfcMapi or OutlookSpy eg when you set the DueDate in EWS make sure you use the same datetime format that Outlook uses (eg i believe it sets it to 12:00 AM on the day the due date). You can use the Mapi editor to look at what the raw value of the DueDate property is being set to when you use EWS then compare it with what happens in Outlook and OWA.

    Cheers
    Glen

    Monday, May 21, 2012 6:37 AM
  • Hello Glen and thank you for your suggestions.

    I have checked the MAPI properties with OutlookSpy. I have set the DueDate with EWS to 23.5.2012 23:59:00. In Outlook I can see 24.5.2012 00:00:00. When I look at MAPI properties, I can see 0x802C TaskDueDate 23:59, 23.5.2012 which is the value I have set. When I display the CurrentItem form (OutlookSpy) there is a property called DueDate (Dispid: 33029 0x8105) with the value 24.5.2012 0:00.

    I still don't understand, if the Outlook is displaying another property or if just changes the value internaly.

    Monday, May 21, 2012 9:04 AM