how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,month,day,hours,minutes and second)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
surya
am 12 Apr. 2019
Kommentiert: Peter Perkins
am 3 Mai 2019
how to separate date and time into 6 tables 01/01/2014 0:10:00? (year,month,day,hours,minutes and second)
1 Kommentar
Peter Perkins
am 3 Mai 2019
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.
Akzeptierte Antwort
Steven Lord
am 12 Apr. 2019
Use the datevec function.
2 Kommentare
Steven Lord
am 13 Apr. 2019
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!