Hard candies like Jolly Ranchers do not expire.
Jolly ranchers candy and other hard candies have an indefinite shelf life and can last essentially forever.
As long as the Jolly Ranchers or other hard candies are not exposed to a lot of heat which can melt them the Jolly Ranchers and other hard candies could last over 100 years.
But most times you would eat the Jolly Ranchers candy well before then.
Candy really doesn't stay in this house longer than a month if we have candy including Jolly Ranchers.
So if you have some old Jolly Ranchers candy you can eat it for a long time past the time you bought the Jolly Ranchers.