Buying vegetables that are nearly end dates is a common feature of my shopping now. I get them home, immediately make them into some kind of soup and then I have some frozen goodness in the freezer for whenever it is needed.
I would never have actually done that pre soup maker days as the effort required was just too much, especially for a small batch of soup.
These vegetables were on their last day for being sold, so I snapped them up for pennies. I had made 3 batches of soup within an hour or so of coming home from the shop.