Add compareDate method.
It is bugy yet.