Add comparison functions to date model.