NaT in Datetime Import Data

7 views (last 30 days)
Alana Mera
Alana Mera on 13 Oct 2021
Commented: Star Strider on 13 Oct 2021
I'm trying to import data and catagorise them as Datetime but the data keeps getting replaced by NaT, very confused as my formatting seems to be correct. Any help?
  3 Comments
Alana Mera
Alana Mera on 13 Oct 2021
All the dates come up as NaT when trying to format it. I'm very new to Matlab :(
Star Strider
Star Strider on 13 Oct 2021
Post the relevant parts of your code as text (rather than attaching it as a .m file)
Attach (upload) at least one of the .csv files

Sign in to comment.

Answers (1)

KSSV
KSSV on 13 Oct 2021
Try using readtable. Read about it.
T = readtable('myfile.xlsx') ;

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!