Datetime won't recognise some cells
1 view (last 30 days)
I have a series of datetimes in the format 'HH:mm:ss.sss'. I am using the following code to convert from string into datetimes.
data.TimeofDay = datetime(data.TimeofDay,'Format','HH:mm:ss.sss')
In the attached .mat file, it contains the data file before and after the command above. For some reason, different values in the column are returned as NaT despite all rows seemingly being in the same format.
Cris LaPierre on 28 Jun 2022
For miliseconds, you want to use a capital 'S'.