I am trying to read some data file and then use datetime() to represent the datetime objects, the file looks like this
the issue is the Day column is seperated whth ',' from the Sflux column in the data file which resulting in an error when using datetime(). how can I fix this?
the error I am getting
Error using datetime (line 547)
Invalid parameter name. Parameter name must be a nonempty string or character vector.
Error in cateogorizing (line 49)
S.date = datetime(S.Year, S.Month, S.Day,0,0,0,'Format', 'uuuuMMddHHmm');
Thanks in adavence,