Info
この質問は閉じられています。 編集または回答するには再度開いてください。
date to number
1 回表示 (過去 30 日間)
古いコメントを表示
Hi How to change the date with this format to number: 09-08-01 00:56:33
Thanks
3 件のコメント
回答 (1 件)
sunil anandatheertha
2012 年 1 月 19 日
Try using this for general purposes: a=clock;a(1),a(2),a(3),a(4),a(5),a(6)
Assuming the 09-08-01 00:56:33 to be,
day-month-year hrs:mins:secs, you can try using the following
a = '09-08-01 00:56:33'
day = str2num(a(1:2))
month = str2num(a(4:5))
year = ...
and so on. Hope this helped..
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!