Date: simplify code

Now that issue #162 has been fixed, we can refactor to use is_a?(Class).