Sort manually dated pantry items from earliest to latest and flag dates within the next seven days.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Each row supplies an item, quantity, and real ISO calendar date; subtracting UTC midnights produces whole days from the selected comparison date. Negative values are labelled expired, zero through seven use soon, and later dates ok before the list is sorted ascending.
Items: Rice, 2 bags, 2027-02-01 Yogurt, 4, 2026-08-27 Today: 2026-08-24
Item Quantity Expiry Days remaining Status ------ -------- ---------- -------------- -------- Yogurt 4 2026-08-27 3 use soon Rice 2 bags 2027-02-01 161 ok
Households rotate shelf stock, refrigerator lists surface near-dated food, and meal plans sort opened products by a manually recorded date.