Dried pasta is one of the least perishable foods around. It will last just fine for months if stored properly in a dark, dry place. You should probably use a packet of pasta before its best before date, although no-one has ever come to any harm by cooking out-of-date dried pasta.
Blog
Does pasta ever go off?
25 May 2016