MATLAB: Can i take correct date from this data convertdate Hello, i tried to convert my dates from string format to correct date, but i get errors.Can i convert it? Best Answer You need to be precise with the format string.Trydatetime(t,'InputFormat','MMM yyyy') Related SolutionsMATLAB: Convert date to datetime t = datetime(DateStrings,'InputFormat','dd/MM/yyyy'); MATLAB: How to convert string to date Date = '10:12:25 Tue 11-Dec-18'res = datetime(Date ,'InputFormat','HH:mm:ss eee dd-MMM-yy','Format','dd/MM/yyyy HH:mm a')Date = '10:12:25 Tue 11-Dec-18'res = datetime 11/12/2018 10:12 AM Related QuestionDate and Time from Text with Literal Characters, Part 2Datestr problem with month
Best Answer