You need to change the format string.
I would do something like this:
m = textscan(fid,'%f%f%f%s%s','HeaderLines',2, 'Delimiter',',');
If you only want to read the first 2 fields and ignore the rest, add ‘*’ to the format string elements you want to ignore:
m = textscan(fid,'%f%f%*f%*s%*s','HeaderLines',2, 'Delimiter',',');
There are other options to read the dates and times. See the documentation section on formatSpec (link) for details.