Why not do `d instanceof Date`?