We could do `input instanceof Date`.