how to convert string date number to double?

7 views (last 30 days)
Bum
Bum on 26 Jan 2013
I used 'datenum' to convert date to number. And then used datestr to see the date and the result is as follows.<123x11 char>
val =
01-Jan-1961
02-Jun-1965
.....
How can I convert this character to double?

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 27 Jan 2013
Edited: Azzi Abdelmalek on 27 Jan 2013
datenum(val)
Or
Datevec(val)

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!