MATLAB: Separate Date and Time from csv file

separate date and time

I have csv file with a column containing the date and time combined as seen below.
How do I separate the date and time?
10/31/2017 17:27:56
10/31/2017 17:27:59
10/31/2017 17:28 :03

Best Answer

How are you currently reading it in? What does your other data look like? There is a space between then, so as long as it doesn't mess up your other data, you could use a space and a comma as delimiters.
Do you need it separate? What if you read it in as a datetime? I'd be tempted to use readtable and just keep it all together, but I don't know what your application is.