read outlook - date format

3 vues (au cours des 30 derniers jours)
Arnaud Bitoun
Arnaud Bitoun le 4 Jan 2019
Hello everybody,
I am writing a code browsing my outlook emails in order to retrieve some information according to their ReceivedTime;
outlook = actxserver('outlook.Application');
mapi = outlook.GetNamespace('mapi');
INBOX = mapi.GetDefaultFolder(6);
count = INBOX.Items.Count;
xDates=zeros(count,1);
for k=1:count
email = INBOX.Items.Item(k);
xDates(k)=datenum(email.ReceivedTime,'dd.mm.yyyy HH:MM:SS');
end
The issue is that email.ReceivedTime gives 㨸㐵1, the format seems to be not correct and its impossible to use it in Matlab.
However when I read my emails directly in Outlook the received time displays correctly.
Thanks in advance for your help,
Arnaud

Réponses (0)

Produits


Version

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by