can you just use `instanceof Date`?