how do i go 6 months back?
so today is Feb 17, 2010 I use datevec to transform to Feb 1,2011, I can just do datenum-6*30 and transform that to Aug 1,2010 but is there a better way to do this? I want to make the intra month assumption above and get the first of the month 6 months back from the first of whatever month I am in.
d1=datevec(date())d1(3)=1d2=datenum(d1)-6*30d2=datevec(d2)d2(3)=1datestr(d2)
thanks for you help
Best Answer