Fixed date check

`typeof new Date() === 'object'`
Merge pull request #1 from pepkin88/patch-1

Fixed date check. Thanks pepkin88!