Azzera filtri
Azzera filtri

extract date from date time command in matlab

83 visualizzazioni (ultimi 30 giorni)
Waqas Siddique
Waqas Siddique il 20 Feb 2021
Modificato: Stephen23 il 20 Feb 2021
Hi
I am using date time command in MATLAB but want only date and not time. Is there any other command?

Risposte (1)

Stephen23
Stephen23 il 20 Feb 2021
Modificato: Stephen23 il 20 Feb 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:

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by