Datetime problem of converting string
5 次查看(过去 30 天)
显示 更早的评论
Hello. Im trying to convert string of dates to datetime and recieving strange error:
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd hh:mm:ss');
Error using datetime (line 636) Unable to convert '2019/09/05 19:02:11' to datetime using the format 'yyyy/MM/dd hh:mm:ss'.
Help me please
0 个评论
采纳的回答
JESUS DAVID ARIZA ROYETH
2020-2-15
hh is uppercase
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!