Add Date.isDate function