You should buy the product before the sell-by date expires. But you can still store it at home for some time beyond that date, as long as you follow safe storage procedures (check the Keep It or Toss It database for the shelf life of specific foods).