MATLAB: Separate year in data database I have a colume with DD.MM.YYYY now I want to get YYYY in this colume. How can I do it with matlab? Thank you a lots Best Answer Let A - you datayear1 = year(datenum(A,'dd.mm.yyyy')) Related SolutionsMATLAB: Convert date to datetime t = datetime(DateStrings,'InputFormat','dd/MM/yyyy'); MATLAB: Converting fractional doy (eg. 208.572917) to a date with mm/dd/yyyy HH:MM datestr(208.5729167 + datenum('2013/01/01'),'mm/dd/yyyy HH:MM') Related QuestionProduce a Date vector starting with a desired dateSeparating day month year from stringPlotting data extending one yearPlease help!!!! Write a function that returns the number of days between dates
Best Answer