Need help with datestr

3 次查看(过去 30 天)
datestr returns characters as '24-Jan-2003 11:58:15', but what I need to do is just get the time stamp rather than the date attached as well, would any one know how to extract just the time using datestr or any other method? Any help would be great thank you.

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-8-16
编辑:Azzi Abdelmalek 2013-8-16
yourdate='16-Aug-2013 15:54:31'
datestr(yourdate,'HH:MM:SS')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by