Tesco has been fined £7,000 for selling out-of-date food in one of its stores in Bridgend, south Wales.
The out-of-date food was in the Bridgend Tesco Extra store
Items found by trading standard inspectors at the Cowbridge Road Tesco Extra last year were between one and 21 days past their use-by date.
The supermarket giant admitted four charges at Bridgend magistrates' court.
Tesco said its "strict processes," seemed to have broken down in an "unusual" case, and staff in the store had been given "refresher training".
The court heard that a Bridgend Council trading standards officer found several out-of-date items in March 2005.
The company accepted a formal caution, but more food past its use-by date was found on display in a follow-up visit in September 2005.
Peter Crocombe, head of Bridgend trading standards, said: "This was a very serious case and hopefully the fine imposed by the court will highlight the need for all retailers to keep a close eye on use-by dates and ensure that supermarkets don't get it wrong in future."
Trading standards said it had brought the case because use-by dates were only issued on foods likely to deteriorate very quickly, which posed a threat of food poisoning.
In a statement after the case Tesco said: "We have strict processes in place to prevent this sort of thing happening, but it seems that these processes may have broken down on this occasion.
"This is an unusual thing to happen. All staff in the store have received refresher training."