T
Tobias Böhm
Hello,
I'm trying to set the MAPI property PR_MESSAGE_DELIVERY_TIME of a
PostItem because I can't manage to set the "Received Date" on the
Outlook-Object. So I create the PostItem item, get a MapiItem from
that, close the initial PostItem (I heard it would reset any dates
when the item is still open) and set the property.
But I can't manage to set a proper date. The line looks like that:
mapiItem.SetProperty(0x0E060040, dateTimeValue);
I tried passing the DateTime object, a date/time string in various
formats but every time some date gets set that's either way in the
future (01.01.3702) or way in the past (01.01.1601).
Any hints on how to set the date properly?
Thanks,
Tobias
(I posted the same question on the board of the add-in framework I use
http://www.add-in-express.com/forum/read.php?FID=5&TID=5919 but I
think it might be more suitable here)
I'm trying to set the MAPI property PR_MESSAGE_DELIVERY_TIME of a
PostItem because I can't manage to set the "Received Date" on the
Outlook-Object. So I create the PostItem item, get a MapiItem from
that, close the initial PostItem (I heard it would reset any dates
when the item is still open) and set the property.
But I can't manage to set a proper date. The line looks like that:
mapiItem.SetProperty(0x0E060040, dateTimeValue);
I tried passing the DateTime object, a date/time string in various
formats but every time some date gets set that's either way in the
future (01.01.3702) or way in the past (01.01.1601).
Any hints on how to set the date properly?
Thanks,
Tobias
(I posted the same question on the board of the add-in framework I use
http://www.add-in-express.com/forum/read.php?FID=5&TID=5919 but I
think it might be more suitable here)