Date format validation

I can't validate Date objects anymore...

What do you think, can this solve the problem?
Instead of checking if input isObject([object Object]), directly check if is [object Date].