Chocolate can be safely eaten well past it's expiration date.
An expiration date on chocolate just means that the chocolate is just not as fresh as it was before the expiration date but chocolate remains safe to eat for 2 to 3 years past it's expiration date.
I've eaten 3 year old chocolate and although it didn't taste as fresh it still was safe to eat and still pretty good.
If you have chocolate that is a few years past it's expiration date and you don't like the taste you can still use it for cooking with or making hot chocolate with.