Need help with datestr

3 vues (au cours des 30 derniers jours)
Zach Pacheco
Zach Pacheco le 16 Août 2013
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.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 16 Août 2013
Modifié(e) : Azzi Abdelmalek le 16 Août 2013
yourdate='16-Aug-2013 15:54:31'
datestr(yourdate,'HH:MM:SS')

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by