correct wrong knowledge about date object in javascript.