Transform into a Matlab datetime format
1 view (last 30 days)
Show older comments
I have an entry "2017-10-26 06-PM" How can I transform this entry into a datetime format that Matlab can understand?
0 Comments
Accepted Answer
Sean de Wolski
on 14 Jun 2018
Edited: Sean de Wolski
on 14 Jun 2018
datetime("2017-10-26 06-PM",'InputFormat','yyyy-MM-dd hh-aa')
3 Comments
Guillaume
on 14 Jun 2018
exactly the same way:
yourtable.columnname = datetime(yourtable.columname, 'InputFormat', 'yyyy-MM-dd hh-aa')
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!