Is there any way to change the date format in Matlab without first converting to a number?
Here is a pseducode example of what I mean:
timeString = '23/04/2016';
newFormat1 = 'yy-mm-dd';
myPseudoFun(timeString, newFormat1)
ans =
16-04-23
newFormat2 = 'dd mmm yyyy';
myPseudoFun(timeString, newFormat2)
ans =
23 Apr 2016
All help is much appreciated!
datestr(datenum(timeString, oldFormat), newFormat)? That's pretty much what any implementation ofmyPseudoFunwould be doing...