Convert dates in MATLAB that show up with the opposite year
1 view (last 30 days)
Show older comments
BA on 21 Jul 2022
Commented: Walter Roberson on 22 Jul 2022
Having some trouble w/ my data.
The dates are showing up wrong. For example:
Obviously, i didn't collect data in 9102 and if you read it backwards, its 2019 which would be the correct date.
Does anyone know how to correct for this?
For example, how would you convert
3/9/9102 --> 3/9/2019
If someone knows, let me know. Thanks
Walter Roberson on 22 Jul 2022
Duplicated by later https://www.mathworks.com/matlabcentral/answers/1765405-trouble-using-split-function-in-matlab?s_tid=srchtitle which has solutions
SAI SRUJAN on 21 Jul 2022
From my understanding of your question,you want to reverse the year part of the date.Im assuming that the dates are in the string format.The following code snippet might help,
More Answers (0)
Find more on Calendar in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!