The duo gave some packets to two prisoners when they came to meet them, police said.
A jail personnel who checked the packets found the containing dates.
However, on further examiniation it was found the seeds in the dates had been removed and ganja stuffed inside.
The two visitors were arrested.