Defects in dried fruits are generally due to insect damage or mold and fungal decay. Rain may cause dates to ferment on the tree, leading to a condition called souring ... etc. The image shows how a date fruit is cut in half in quality control laboratory for analysis. If you are interesting to get more the picture details click on the image down-below