Formatting Time Strings

1 回表示 (過去 30 日間)
Syed Abbas
Syed Abbas 2012 年 1 月 9 日
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.

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by