Heat oil in a medium saucepan over medium high heat. Add onion, ginger, cardamom and salt, and saute until translucent, about 5 minutes. Stir in apples, dates, sugar and vinegar. Bring to a boil, reduce to a vigorous simmer, and cook, partially covered, until apples are tender, about 10 minutes. Serve warm or room temperature.