Why does DATESTR return an error when parsing date strings with non-US local time/date formats in MATLAB 7.5 (R2007b)?
Show older comments
When I run the following command in MATLAB 7.5 (R2007b) on a computer with German local settings,
dStr = datestr('21-Dez-2007 09:30:20', 31)
I receive the following error
??? Error using ==> datestr at 180
Cannot convert input into specified date string.
DATENUM failed.
Failed to parse date string.
Error using ==> datevec at 217
Failed to lookup month of year..
The same error is produced for the following command in MATLAB 7.5 (R2007b) on a computer with Portuguese regional settings
dStr = datestr('29 Julho 2008 11-53-51', 31)
Accepted Answer
More Answers (0)
Categories
Find more on Time Series Objects in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!