How to extract year and month from attached string.
Show older comments
I want to extract year and month from attached string data. Please help me.
Thank you so much in advance.
Regard's
Varunesh
Accepted Answer
More Answers (1)
Walter Roberson
on 10 Jan 2019
times = datetime(date.datetime, 'InputFormat', 'yyyy-MM-dd''T''HH:mm:ss');
By the way, your times are not completely sorted.
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!