Hello Gourish, >"*datevec(datenum(2010,4,6,1,0,0))*" >which gives the result as "*ans = 2010. 4. 6. 0. 59. 59.999997*" instead of >"*ans = 2010. 4. 6. 1. 0. 0.*" > >is there any solution for the problem? floor(datevec(nearfloat("succ",datenum(2010,4,6,1,0,0)))) Samuel