Ajout des methodes: equals, sameState, sameDate