Formatting Time Strings

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by