string to number
Show older comments
Hi I have an array which looks like this:
'''27/01/2012 15:30:00'''
'''27/01/2012 15:31:33'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:49:19'''
'''27/01/2012 15:50:26'''
I want to just have the TIME and in a NON-STRING format. Any help?
3 Comments
Friedrich
on 14 Feb 2012
You cant keep the format 15:30:00 when using a a non string format. only way is an numeric array of the ascii value of each char. but this doesnt make much sense.
You can use the datenum function to convert the time in a numerical value, e.g. datenum('15:30:00','hh:mm:ss'). The important question is why do you need a Non String format and what would you do with it.
Mate 2u
on 14 Feb 2012
Mate 2u
on 14 Feb 2012
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!