dates with yy

8 visualizaciones (últimos 30 días)
joseph Frank
joseph Frank el 25 de Abr. de 2011
Hi,
I have a cell array of dates that have this format: '08/28/01' '03/01/97' etc.. How can I convert them to a double matlab number date? where 08/28/01 refers to the 28th of august 2001 and 03/01/97 refers ti the first of march 1997

Respuesta aceptada

Matt Fig
Matt Fig el 25 de Abr. de 2011
datenum('08/28/01')
  2 comentarios
Oleg Komarov
Oleg Komarov el 25 de Abr. de 2011
I usually always write the format (since I am european):
datenum('08/09/01','mm/dd/yy')
Matt Fig
Matt Fig el 25 de Abr. de 2011
This is probably not a bad practice to use in general. Thanks Oleg!

Iniciar sesión para comentar.

Más respuestas (0)

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