MATLAB Answers

Datetime problem of converting string

4 views (last 30 days)
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 Comments

Sign in to comment.

Accepted Answer

JESUS DAVID ARIZA ROYETH
JESUS DAVID ARIZA ROYETH on 15 Feb 2020
hh is uppercase
D=datetime('2019/09/05 19:02:11', 'InputFormat','yyyy/MM/dd HH:mm:ss')

More Answers (0)

Products


Translated by