This date comparison function takes the month and year into account for matching. If relative distance calculation is specified, the relative distance is specified in months.