fail to convert datetime with pm string
Show older comments
Hi:
I successfully convert string '2022-09-30 10-01' to datetime using command:
datetime('2022-09-30 10-01','InputFormat','yyyy-MM-dd hh-mm')
but string '2022-09-30 16-01' failed, I expect it return 4:01 pm
is there any mistake with my command?
Thanks!
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time 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!