new func to support date comparaison