Peel, wash and cut the sweet potatoes into 2-inch cubes. Bring water to a boil. Add ginger, sweet potatoes, black dates, and dried longan. Lower the heat and simmer for 30 minutes or longer until the sweet potatoes are soft but not mushy. Add rock sugar and taste. You can serve it hot or cold