How to split multiple numbers which is one number from data file?
显示 更早的评论
202021031200
this is has year date and time, how do I split the numbers into year date and time?
回答(1 个)
D = 202021031200;
T = datetime(string(D), 'InputFormat', 'uuuuddMMHHmm')
类别
在 帮助中心 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!