Checking if date was parsed from String to object