フィルターのクリア

Read Outlook email through Matlab - chinese format date for email.ReceivedTime

1 回表示 (過去 30 日間)
Arnaud Bitoun
Arnaud Bitoun 2018 年 12 月 22 日
コメント済み: James Sutherland 2019 年 5 月 14 日
Hello,
I am trying to read outlook email and to check recpetion time;
outlook = actxserver('outlook.Application');
mapi = outlook.GetNamespace('mapi');
INBOX = mapi.GetDefaultFolder(6);
email=INBOX.Folders(1).Item(1).Items(1).Item(1);
ReceivedTime=email.ReceivedTime;
The issue is that ReceivedTime appears to be in chinese format; 〲ㄮ⸲〲㠱〠㨸㐳㔺8.
I just install R2016B. With R2015B it worked very well,
Anyone knows if the issue comes from MatlabR2016b or Outlook ?
Thanks in advance,
Arnaud
  1 件のコメント
James Sutherland
James Sutherland 2019 年 5 月 13 日
編集済み: James Sutherland 2019 年 5 月 13 日
I am also having this issue with Matlab R2016b, it works fine with R2013a. Did you manage to resolve it or find a work-around?

サインインしてコメントする。

回答 (2 件)

Arnaud Bitoun
Arnaud Bitoun 2019 年 5 月 14 日
try this;
DateRaised=native2unicode(unicode2native(email.ReceivedTime, 'UTF-16 LE'));

Arnaud Bitoun
Arnaud Bitoun 2019 年 5 月 13 日
Hello James,
can you show me the Mtalab code line that provoke the issue ?
Arnaud
  1 件のコメント
James Sutherland
James Sutherland 2019 年 5 月 14 日
編集済み: James Sutherland 2019 年 5 月 14 日
Hi Arnaud,
It is very similar to your code above:
outlook=actxserver('Outlook.Application');
mapi=outlook.GetNamespace('mapi');
INBOX=mapi.Folders(1).Item(1).Folders(1).Item('Inbox');
email=INBOX.Items.Item(1);
DateRaised = email.get('ReceivedTime');
I end up with '〳〯⼴〲㤱ㄠ㨴ㄵ㐺2'.
Thanks,
James

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by