Remove the pit, open it up wide and check for clusters of black eggs, white worms or any other infestation. Dates should be held up to the best available light to inspect for holes or black spots.