Dat = str2dat(S,...)
S
[ char | cellstr ] - Strings representing dates.Dat
[ numeric ] - IRIS serial date numbers.'freq='
[ 1
| 2
| 4
| 6
| 12
| 52
| 365
| empty ] - Enforce frequency.See help on dat2str
for other options available.
d = str2dat('04-2010','dateFormat=','MM-YYYY');
dat2str(d)
ans =
'2010M04'
d = str2dat('04-2010','dateFormat=','MM-YYYY','freq=',4);
dat2str(d)
ans =
'2010Q2'