Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Gregory
Posts:
4
Registered:
6/18/13


conversion problem with datestr, datenum and pivotyear
Posted:
Jun 18, 2013 3:43 AM


Hi, found something strange I don't understand on my R2012b :
> d='19990104';
> datestr(datenum(d,'yyyymmdd'),'yyyymmdd')
ans =
19990104
(this is ok, problem is below :)
> datestr(datenum(d,'yyyymmdd',2000),'yyyymmdd',2000)
ans =
20270301
Why don't I find the original date in both cases ? Thanks



