How to specify a date string format when using xlsread from Excel?
Mostra commenti meno recenti
When I use xlsread to import dates, I receive the following warning: Warning: Successfully read the date/time strings using the format 'MM/dd/uuuu', but their format is ambiguous and could also be 'dd/MM/uuuu'. Specify a format string to avoid ambiguity.
How do I specify a date format when reading dates from Excel? I do not see an option to do so in xlsread.
1 Commento
Jeremy Hughes
il 13 Feb 2018
Hi Kathrine,
Can you share some code? and a file? I'm not sure this is coming from XLSREAD. As far as I know, XLSREAD treats dates as text.
Jeremy
Risposte (2)
Katherine Varga
il 14 Feb 2018
1 voto
Peter Perkins
il 15 Feb 2018
0 voti
Katherine, consider using readtable instead of xlsread. In recent versions, importing dates is much simpler than using xlsread.
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!