static gboolean
compare_date (EContactDate *date,
              const gchar *str,
              const gchar *region,
              CompareFunc compare)
{
	gchar *date_str = e_contact_date_to_string (date);
	gboolean ret_val = FALSE;

	if (date_str) {
		if (compare (date_str, str, region)) {
			ret_val = TRUE;
		}
		g_free (date_str);
	}
	return ret_val;
}
static gboolean
compare_date (EContactDate *date,
              const gchar *str,
              gchar * (*compare) (const gchar *,
                                  const gchar *))
{
	gchar *date_str = e_contact_date_to_string (date);
	gboolean ret_val = FALSE;

	if (date_str) {
		if (compare (date_str, str)) {
			ret_val = TRUE;
		}
		g_free (date_str);
	}
	return ret_val;
}