fixed new Date for number argument