Fixes bug in MyDate equals() method