Effacer les filtres
Effacer les filtres

Formatting Time Strings

1 vue (au cours des 30 derniers jours)
Syed Abbas
Syed Abbas le 9 Jan 2012
I have a vector of time strings which look like this: ' 2011/11/01 09:00:00.792'. I want this string to look like this: 20111101090000792. How can I acheive that. Thanks.

Réponse acceptée

Sean de Wolski
Sean de Wolski le 9 Jan 2012
One of many ways:
str = ' 2011/11/01 09:00:00.792'
str2 = str(isstrprop(str,'digit'))

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by