You mean in the PDF there will be a new date every time you test.
Maybe you need to discuss with a developer that for your environment you have a special pdf that always have the same date.
Or if the pdf is generated by your system time you could try to use cy.clock and manipulate the time.
But i dont know if this will work.
https://docs.cypress.io/api/commands/clock#Function-names