fixed bug when number is passed to isDate