Datetime command not working as specified

I have the code
CurDate = datetime('now','format', 'dd/MM/yyyy')
prior to calling CurDate the value shows 26/05/2016
When I call it to change to a string I get the time as well.
Can I stop this from happening?

1 Commento

What is it that shows as a date before you do the assignment?
What is it that shows the time as well?
When I try the code you show, CurDate always shows just the date.

Risposte (0)

Questa domanda è chiusa.

Tag

Richiesto:

Jay
il 26 Mag 2016

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by