MATLAB: Transform into a Matlab datetime format

MATLAB

I have an entry "2017-10-26 06-PM" How can I transform this entry into a datetime format that Matlab can understand?

Best Answer

datetime("2017-10-26 06-PM",'InputFormat','yyyy-MM-dd hh-aa')