How long does powdered sugar last?
Unopened, it keeps in the cupboard for about 18 months.
This refers to: Powdered (icing) sugar.

Shelf life of powdered sugar at a glance
| Storage | Unopened | Opened |
|---|---|---|
| Cupboard | 18 months | – |
Kept dry, powdered sugar practically never spoils, but it absorbs moisture and clumps easily. Store airtight and sift out lumps before use.
Past its date does not mean spoiled
These are guide values for food stored correctly. A best-before date is not a throw-away date: many products are still fine after it. Check how it looks, smells and tastes. Mould, an unusual smell or a bulging can are reasons to throw it away. A use-by date is different: do not eat the food after it.