how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,month,day,hours,minutes and second)
1 次查看(过去 30 天)
显示 更早的评论
how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,month,day,hours,minutes and second)
1 个评论
Peter Perkins
2019-5-3
I'm gonna suggest that if 01/01/2014 0:10:00 represents a datetime, that you DON'T do that. You will likely be much happier with datetimes than six columns of numbers.
采纳的回答
Steven Lord
2019-4-12
Use the datevec function.
2 个评论
Steven Lord
2019-4-13
I have no idea since I don't have your data nor have you stated what "its[sic] not related' means.
Show a small sample of data for which it gives a different answer than you expected and the exact datevec call you're executing. With that information we may be able to determine why it's not doing what you expect and how to modify the call.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!