extract date from date time command in matlab

89 visualizaciones (últimos 30 días)
Waqas Siddique
Waqas Siddique el 20 de Feb. de 2021
Editada: Stephen23 el 20 de Feb. de 2021
Hi
I am using date time command in MATLAB but want only date and not time. Is there any other command?

Respuestas (1)

Stephen23
Stephen23 el 20 de Feb. de 2021
Editada: Stephen23 el 20 de Feb. de 2021
You don't need another command, you just need to change the format property:
For example:
Dt.Format = 'yyyy-MM-dd';
See also the examples:

Categorías

Más información sobre Dates and Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by