Improved isDate() method

isDate() now also checks for the weird "Invalid Date".