I have an array of date time values. How do I separate Date and time and enter it in separate columns in excel?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
The dataset is a 83520x10 table so how would I do that for something of this size?
0 commentaires
Réponses (2)
Jeremy Hughes
le 27 Fév 2019
Assuming you have a datetime array called DateAndTime which is a column vector:
Date = dateshift(DateAndTime,'start','day')
Time = timeofday(DateAndTime)
writetable(table(Date,Time),'file.xlsx')
0 commentaires
Voir également
Catégories
En savoir plus sur Dates and Time dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!