"What's the easiest way"   This approach is one candidate
>> datestr(datenum(temp,'yyyy-mm-ddTHH:MM:SS'), 'yyyy-mm-dd')
ans =
1990-01-02
1990-01-01
1990-01-03
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!