create yyyymm variable from date
Show older comments
I have a date variable. I want to create yyyymm from the date variable. I can use the year function and the month function to extract year and month. I would like to know how one can create yyyymm variable.
3 Comments
the cyclist
on 30 Jun 2020
Edited: the cyclist
on 30 Jun 2020
When you say you have a "date variable", what format is it? Is it a datenumber? A datetime? Something else? Can you post an example of your data, either by posting some code, or uploading in a MAT file?
alpedhuez
on 30 Jun 2020
alpedhuez
on 30 Jun 2020
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time 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!