Chop the peeled and cored apples, peeled onions, optional hot pepper, and pitted dates in a blender, food processor, or by hand. If you prefer a smoother sauce, these ingredients may be ground together.
Combine in a kettle with the vinegar, mustard, ginger, allspice, and cayenne pepper. Add the juice or water as needed to make a slightly runny mixture.