Please don't reuse variables - we might as well create a new one for the known Date object. ie something like `var date = value instanceof Date ? value : new Date(value);`