Compares two dates.
Use this function two compare two COleDateTime objects taking into account only dates.