create yyyymm variable from date
Mostrar comentarios más antiguos
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 comentarios
the cyclist
el 30 de Jun. de 2020
Editada: the cyclist
el 30 de Jun. de 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
el 30 de Jun. de 2020
alpedhuez
el 30 de Jun. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!