change date to number and parameter type from Object to NUMBER