Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Datetime command not working as specified

1 visualización (últimos 30 días)
Jay
Jay el 26 de Mayo de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
Walter Roberson
Walter Roberson el 26 de Mayo de 2016
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.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by